-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been using django-mptt in my project for a while now, it's fabulous. Recently, I've found a need to override a model's save() method that uses mptt, and I'm getting an error when I try to save a new instance of that model:
Exception Type: ValueError at /admin/scrivener/page/add/
Exception Value:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm getting the error:
Exception Value: (1110, "Column 'about' specified twice")
As I was reviewing the Django error page, I noticed that the customizations the model User, seem to be appended to the List twice.
This seems to be happening here in django/db/model/base.py in base_save():
values…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been struggling to deploy Django application on Amazon EC2 using Bitnami Djangostack for the last couple of days. When I go to http://dewey.io I see the default bitnami page (/opt/bitnami/apache2/htdocs/index.html), however, when I open http://dewey.io/portnoy, I get 'Internal Server Error'…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
when i run development server it works very well, even an empty project runing in mod_wsgi i have no problem but when i want to put my own project i get an Internal Server Error (500)
in my apache conf i put
WSGIScriptAlias /codevents C:/django/apache/CODEvents.wsgi
<Directory "C:/django/apache">
Order…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
when i run development server it works very well, even an empty project runing in mod_wsgi i have no problem but when i want to put my own project i get an Internal Server Error (500)
in my apache conf i put
WSGIScriptAlias /codevents C:/django/apache/CODEvents.wsgi
<Directory "C:/django/apache">
Order…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When making a django request through json as,
var info=id + "##" +name+"##"
$.post("/supervise/activity/" + info ,[] ,
function Handler(data,arr)
{
}
In urls.py
(r'^activity/(?P<info>\d+)/$, 'activity'),
In views,
def activity(request,info):
print info
The request…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Suppose I have a URLconf like below, and 'foo' and 'bar' are valid values for page_slug.
urlpatterns = patterns('',
(r'^page/(?P<page_slug>.*)/', 'myapp.views.someview'),
)
Then, I could reconstruct the URLs using the below, right?
>>> from django.core.urlresolvers import reverse
>>>…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
This is for Django 1.2.5 and Python 2.7 on Wamp Server running apache version 2.2.17.
My problem is that the my URLConf in urls.py isn't redirecting, it's just throwing a 404 error.
urls.py:
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
#from django…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm a Django newbie who needs help: Even though I change some urls in my urls.py I keep on getting the same error message from Django. Here is the relevant line from my settings.py:
ROOT_URLCONF = 'mydjango.urls'
Here is my urls.py:
from django.conf.urls.defaults import *
# Uncomment the next…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I don't know if its me but {% tag ??? %} has bee behaving a bit sporadically round me (django ver 1.2.3). I have the following main.html file:
<html>
{% include 'main/main_css.html' %}
<body>
test! <a href="{% url login.views.logout_view %}">logout</a>
test! <a href="{%…
>>> More