Re: MemoryError

2011-06-22 Thread Gagan (GPS)
I tried to work around the plotting code and the MemoryError seams to
have resolved itself. Apparently there was some problem with the data
handling.

On Jun 22, 2:50 pm, "Gagan (GPS)"  wrote:
> Hi,
>
> I am building a website that can access data from my server, plot it
> and present it in a pdf format. I am experiencing the following error
> and am unable to understand what to do. Kindly help.
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
>     self.result = application(self.environ, self.start_response)
>   File "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/
> handlers.py", line 68, in __call__
>     return self.application(environ, start_response)
>   File "/usr/lib/python2.7/dist-packages/django/core/handlers/
> wsgi.py", line 247, in __call__
>     response = self.get_response(request)
>   File "/usr/lib/python2.7/dist-packages/django/core/handlers/
> base.py", line 169, in get_response
>     response = self.handle_uncaught_exception(request, resolver,
> sys.exc_info())
>   File "/usr/lib/python2.7/dist-packages/django/core/handlers/
> base.py", line 203, in handle_uncaught_exception
>     return debug.technical_500_response(request, *exc_info)
>   File "/usr/lib/python2.7/dist-packages/django/views/debug.py", line
> 63, in technical_500_response
>     html = reporter.get_traceback_html()
>   File "/usr/lib/python2.7/dist-packages/django/views/debug.py", line
> 268, in get_traceback_html
>     return t.render(c)
>   File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 124, in render
>     return self._render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 118, in _render
>     return self.nodelist.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 747, in render
>     bits.append(self.render_node(node, context))
>   File "/usr/lib/python2.7/dist-packages/django/template/debug.py",
> line 73, in render_node
>     result = node.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/
> defaulttags.py", line 313, in render
>     return self.nodelist_true.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 747, in render
>     bits.append(self.render_node(node, context))
>   File "/usr/lib/python2.7/dist-packages/django/template/debug.py",
> line 73, in render_node
>     result = node.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/
> defaulttags.py", line 78, in render
>     output = self.nodelist.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 747, in render
>     bits.append(self.render_node(node, context))
>   File "/usr/lib/python2.7/dist-packages/django/template/debug.py",
> line 73, in render_node
>     result = node.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/
> defaulttags.py", line 229, in render
>     nodelist.append(node.render(context))
>   File "/usr/lib/python2.7/dist-packages/django/template/
> defaulttags.py", line 313, in render
>     return self.nodelist_true.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 747, in render
>     bits.append(self.render_node(node, context))
>   File "/usr/lib/python2.7/dist-packages/django/template/debug.py",
> line 73, in render_node
>     result = node.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/
> defaulttags.py", line 238, in render
>     return nodelist.render(context)
>   File "/usr/lib/python2.7/dist-packages/django/template/base.py",
> line 750, in render
>     return mark_safe(''.join([force_unicode(b) for b in bits]))
> TemplateSyntaxError: Caught MemoryError while rendering:[22/Jun/2011
> 14:48:01] "GET /plot/plot/12.pdf HTTP/1.1" 500 59

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



MemoryError

2011-06-21 Thread Gagan (GPS)
Hi,

I am building a website that can access data from my server, plot it
and present it in a pdf format. I am experiencing the following error
and am unable to understand what to do. Kindly help.

Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
  File "/usr/lib/python2.7/dist-packages/django/contrib/staticfiles/
handlers.py", line 68, in __call__
return self.application(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/
wsgi.py", line 247, in __call__
response = self.get_response(request)
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/
base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver,
sys.exc_info())
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/
base.py", line 203, in handle_uncaught_exception
return debug.technical_500_response(request, *exc_info)
  File "/usr/lib/python2.7/dist-packages/django/views/debug.py", line
63, in technical_500_response
html = reporter.get_traceback_html()
  File "/usr/lib/python2.7/dist-packages/django/views/debug.py", line
268, in get_traceback_html
return t.render(c)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py",
line 124, in render
return self._render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py",
line 118, in _render
return self.nodelist.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py",
line 747, in render
bits.append(self.render_node(node, context))
  File "/usr/lib/python2.7/dist-packages/django/template/debug.py",
line 73, in render_node
result = node.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/
defaulttags.py", line 313, in render
return self.nodelist_true.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py",
line 747, in render
bits.append(self.render_node(node, context))
  File "/usr/lib/python2.7/dist-packages/django/template/debug.py",
line 73, in render_node
result = node.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/
defaulttags.py", line 78, in render
output = self.nodelist.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py",
line 747, in render
bits.append(self.render_node(node, context))
  File "/usr/lib/python2.7/dist-packages/django/template/debug.py",
line 73, in render_node
result = node.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/
defaulttags.py", line 229, in render
nodelist.append(node.render(context))
  File "/usr/lib/python2.7/dist-packages/django/template/
defaulttags.py", line 313, in render
return self.nodelist_true.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py",
line 747, in render
bits.append(self.render_node(node, context))
  File "/usr/lib/python2.7/dist-packages/django/template/debug.py",
line 73, in render_node
result = node.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/
defaulttags.py", line 238, in render
return nodelist.render(context)
  File "/usr/lib/python2.7/dist-packages/django/template/base.py",
line 750, in render
return mark_safe(''.join([force_unicode(b) for b in bits]))
TemplateSyntaxError: Caught MemoryError while rendering:[22/Jun/2011
14:48:01] "GET /plot/plot/12.pdf HTTP/1.1" 500 59

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ImportError at /admin/

2011-06-13 Thread Gagan (GPS)
Also, A traceback of the error at /admin/ and /

On Jun 13, 8:25 pm, "Gagan (GPS)"  wrote:
> This is the urls.py with the admin bits uncommented from the default
> urls.py file.
>
> On Jun 13, 8:18 pm, Daniel Roseman  wrote:
>
>
>
>
>
>
>
> > On Monday, June 13, 2011 11:56:18 AM UTC+1, Gagan (GPS) wrote:
>
> > > I am having some difficulty accessing the admin of a project I am
> > > trying to create.
>
> > > My urls.py is the default with admin enabled:
>
> > > from django.conf.urls.defaults import patterns, include, url
>
> > > from django.contrib import admin
> > > admin.autodiscover()
>
> > > urlpatterns = patterns('',
> > >     # Examples:
> > >     # url(r'^$', '{{ project_name }}.views.home', name='home'),
> > >     # url(r'^{{ project_name }}/',
> > > include('{{ project_name }}.foo.urls')),
>
> > >     # Uncomment the admin/doc line below to enable admin
> > > documentation:
> > >     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
> > >     url(r'^admin/', include(admin.site.urls)),
> > > )
>
> > This is not the default admin. You seem for some reason to have put some
> > template variable syntax in a Python file - I can't imagine why. Obviously,
> > this is not valid Python syntax.
> > --
> > DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ImportError at /admin/

2011-06-13 Thread Gagan (GPS)
This is the urls.py with the admin bits uncommented from the default
urls.py file.

On Jun 13, 8:18 pm, Daniel Roseman  wrote:
> On Monday, June 13, 2011 11:56:18 AM UTC+1, Gagan (GPS) wrote:
>
> > I am having some difficulty accessing the admin of a project I am
> > trying to create.
>
> > My urls.py is the default with admin enabled:
>
> > from django.conf.urls.defaults import patterns, include, url
>
> > from django.contrib import admin
> > admin.autodiscover()
>
> > urlpatterns = patterns('',
> >     # Examples:
> >     # url(r'^$', '{{ project_name }}.views.home', name='home'),
> >     # url(r'^{{ project_name }}/',
> > include('{{ project_name }}.foo.urls')),
>
> >     # Uncomment the admin/doc line below to enable admin
> > documentation:
> >     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
> >     url(r'^admin/', include(admin.site.urls)),
> > )
>
> This is not the default admin. You seem for some reason to have put some
> template variable syntax in a Python file - I can't imagine why. Obviously,
> this is not valid Python syntax.
> --
> DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: ImportError at /admin/

2011-06-13 Thread Gagan (GPS)
I seem to be getting this error for all pages. For a simple start page
the trace-back was:

Environment:


Request Method: GET
Request URL: http://192.168.2.127:8000/

Django Version: 1.4 pre-alpha SVN-16385
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'pagination',
 'django_extensions',
 'django.contrib.admin',
 'events']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'pagination.middleware.PaginationMiddleware')


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response
  101. request.path_info)
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
resolve
  250. for pattern in self.url_patterns:
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
_get_url_patterns
  279. patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
_get_urlconf_module
  274. self._urlconf_module =
import_module(self.urlconf_name)
File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py" in
import_module
  35. __import__(name)

Exception Type: ImportError at /
Exception Value: No module named {{ project_name }}.urls


On Jun 13, 6:56 pm, "Gagan (GPS)"  wrote:
> I am having some difficulty accessing the admin of a project I am
> trying to create.
>
> My urls.py is the default with admin enabled:
>
> from django.conf.urls.defaults import patterns, include, url
>
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
>     # Examples:
>     # url(r'^$', '{{ project_name }}.views.home', name='home'),
>     # url(r'^{{ project_name }}/',
> include('{{ project_name }}.foo.urls')),
>
>     # Uncomment the admin/doc line below to enable admin
> documentation:
>     # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
>     url(r'^admin/', include(admin.site.urls)),
> )
>
> The traceback is as follows:
>
> Environment:
>
> Request Method: GET
> Request URL:http://192.168.2.127:8000/admin/
>
> Django Version: 1.4 pre-alpha SVN-16385
> Python Version: 2.7.1
> Installed Applications:
> ['django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'pagination',
>  'django_extensions',
>  'django.contrib.admin',
>  'events']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  'pagination.middleware.PaginationMiddleware')
>
> Traceback:
> File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py"
> in get_response
>   101.                             request.path_info)
> File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
> resolve
>   250.             for pattern in self.url_patterns:
> File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
> _get_url_patterns
>   279.         patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
> File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
> _get_urlconf_module
>   274.             self._urlconf_module =
> import_module(self.urlconf_name)
> File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py" in
> import_module
>   35.     __import__(name)
>
> Exception Type: ImportError at /admin/
> Exception Value: No module named {{ project_name }}.urls

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



ImportError at /admin/

2011-06-13 Thread Gagan (GPS)
I am having some difficulty accessing the admin of a project I am
trying to create.

My urls.py is the default with admin enabled:

from django.conf.urls.defaults import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
# Examples:
# url(r'^$', '{{ project_name }}.views.home', name='home'),
# url(r'^{{ project_name }}/',
include('{{ project_name }}.foo.urls')),

# Uncomment the admin/doc line below to enable admin
documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

url(r'^admin/', include(admin.site.urls)),
)


The traceback is as follows:


Environment:


Request Method: GET
Request URL: http://192.168.2.127:8000/admin/

Django Version: 1.4 pre-alpha SVN-16385
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'pagination',
 'django_extensions',
 'django.contrib.admin',
 'events']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'pagination.middleware.PaginationMiddleware')


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py"
in get_response
  101. request.path_info)
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
resolve
  250. for pattern in self.url_patterns:
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
_get_url_patterns
  279. patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in
_get_urlconf_module
  274. self._urlconf_module =
import_module(self.urlconf_name)
File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py" in
import_module
  35. __import__(name)

Exception Type: ImportError at /admin/
Exception Value: No module named {{ project_name }}.urls

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Syntax Error at requested method GET !!!

2011-06-13 Thread Gagan (GPS)
Yes... Thank You...

On Jun 10, 6:22 pm, Tom Evans  wrote:
> On Fri, Jun 10, 2011 at 7:27 AM, Gagan (GPS)  wrote:
> > I have experienced this error on my Ubuntu 11.04. I am unable to even
> > view the / page on this site. Kindly help. I was trying to learn
> > Django by following the video regarding creating a wiki on
> > showmedo.com . The link to the video is:
> >http://showmedo.com/videotutorials/video?name=110&fromSeriesID=110
>
> > Kindly Help.
>
> > Following is the Traceback for reference.
>
> > Environment:
> >  18.   (r'^wikicamp/(?[^/]+)/save/$',
> >  245.         raise error, v # invalid expression
>
> This re is invalid, specifically "(?[^/]+)". I presume you
> meant "(?P[^/]+)".
>
> Cheers
>
> Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: manage.py runserver giving error!!

2011-06-13 Thread Gagan (GPS)
Thanks,

It seems to work with the change you proposed.

Problem Solved.

Thank you Daniel

On Jun 13, 5:21 pm, Daniel Roseman  wrote:
> On Monday, June 13, 2011 10:15:49 AM UTC+1, Gagan (GPS) wrote:
>
> > I am using sqlite3.
>
> > The database settings are as follows:
>
> > DATABASES = {
> >     'default': {
> >         'ENGINE': 'sqlite3', # Add 'postgresql_psycopg2', 'mysql',
> > 'sqlite3' or 'oracle'.
> >         'NAME': 'database.db',                      # Or path to
> > database file if using sqlite3.
> >         'USER': '',                      # Not used with sqlite3.
> >         'PASSWORD': '',                  # Not used with sqlite3.
> >         'HOST': '',                      # Set to empty string for
> > localhost. Not used with sqlite3.
> >         'PORT': '',                      # Set to empty string for
> > default. Not used with sqlite3.
> >     }
> > }
>
> So, you ignored the bit that said 'Add' when you replaced the stub ENGINE
> setting with 'sqlite3'. It should be 
> 'django.db.backends.sqlite3'.https://docs.djangoproject.com/en/1.3/intro/tutorial01/#database-setup
> --
> DR

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: manage.py runserver giving error!!

2011-06-13 Thread Gagan (GPS)
I am using sqlite3.

The database settings are as follows:

DATABASES = {
'default': {
'ENGINE': 'sqlite3', # Add 'postgresql_psycopg2', 'mysql',
'sqlite3' or 'oracle'.
'NAME': 'database.db',  # Or path to
database file if using sqlite3.
'USER': '',  # Not used with sqlite3.
'PASSWORD': '',  # Not used with sqlite3.
'HOST': '',  # Set to empty string for
localhost. Not used with sqlite3.
'PORT': '',      # Set to empty string for
default. Not used with sqlite3.
}
}

On Jun 13, 4:51 pm, Daniel Roseman  wrote:
> On Monday, 13 June 2011 09:42:45 UTC+1, Gagan (GPS) wrote:
>
> > I am using Ubuntu 11.04 and I had recently installed Django by using
> > svn and creating a hard link of the Django folder to the appropriate
> > python folder. When I tried to create a new project, It created the
> > project easily but the manage.py runserver is giving me trouble.
> > 192.168.2.127 is the IP address of this computer. The problem is
> > coming even if I do not give my IP address.
>
> > Kindly help.
>
> > Following is the display on the terminal when I try to execute the
> > command:
>
> > $ python manage.py runserver 192.168.2.127:8000
> > Validating models...
>
> > Unhandled exception in thread started by  > Command.inner_run of
> >  > object at 0x2b5a990>>
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/dist-packages/django/core/management/
> > commands/runserver.py", line 88, in inner_run
> >     self.validate(display_num_errors=True)
> >   File "/usr/lib/python2.7/dist-packages/django/core/management/
> > base.py", line 243, in validate
> >     from django.core.management.validation import
> > get_validation_errors
> >   File "/usr/lib/python2.7/dist-packages/django/core/management/
> > validation.py", line 3, in 
> >     from django.contrib.contenttypes.generic import GenericForeignKey,
> > GenericRelation
> >   File "/usr/lib/python2.7/dist-packages/django/contrib/contenttypes/
> > generic.py", line 7, in 
> >     from django.db import connection
> >   File "/usr/lib/python2.7/dist-packages/django/db/__init__.py", line
> > 27, in 
> >     connection = connections[DEFAULT_DB_ALIAS]
> >   File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 81,
> > in __getitem__
> >     backend = load_backend(db['ENGINE'])
> >   File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 23,
> > in load_backend
> >     return import_module('.base', backend_name)
> >   File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py",
> > line 35, in import_module
> >     __import__(name)
> > ImportError: No module named base
>
> As that traceback shows, there is a problem with your database engine
> setting. What have you put in the DATABASES dictionary in settings.py?
> --
> DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



manage.py runserver giving error!!

2011-06-13 Thread Gagan (GPS)
I am using Ubuntu 11.04 and I had recently installed Django by using
svn and creating a hard link of the Django folder to the appropriate
python folder. When I tried to create a new project, It created the
project easily but the manage.py runserver is giving me trouble.
192.168.2.127 is the IP address of this computer. The problem is
coming even if I do not give my IP address.

Kindly help.

Following is the display on the terminal when I try to execute the
command:



$ python manage.py runserver 192.168.2.127:8000
Validating models...

Unhandled exception in thread started by >
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/management/
commands/runserver.py", line 88, in inner_run
self.validate(display_num_errors=True)
  File "/usr/lib/python2.7/dist-packages/django/core/management/
base.py", line 243, in validate
from django.core.management.validation import
get_validation_errors
  File "/usr/lib/python2.7/dist-packages/django/core/management/
validation.py", line 3, in 
from django.contrib.contenttypes.generic import GenericForeignKey,
GenericRelation
  File "/usr/lib/python2.7/dist-packages/django/contrib/contenttypes/
generic.py", line 7, in 
from django.db import connection
  File "/usr/lib/python2.7/dist-packages/django/db/__init__.py", line
27, in 
connection = connections[DEFAULT_DB_ALIAS]
  File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 81,
in __getitem__
backend = load_backend(db['ENGINE'])
  File "/usr/lib/python2.7/dist-packages/django/db/utils.py", line 23,
in load_backend
return import_module('.base', backend_name)
  File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py",
line 35, in import_module
__import__(name)
ImportError: No module named base

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Syntax Error at requested method GET !!!

2011-06-10 Thread Gagan (GPS)
I have experienced this error on my Ubuntu 11.04. I am unable to even
view the / page on this site. Kindly help. I was trying to learn
Django by following the video regarding creating a wiki on
showmedo.com . The link to the video is:
http://showmedo.com/videotutorials/video?name=110&fromSeriesID=110

Kindly Help.

Following is the Traceback for reference.

Environment:

Request Method: GET
Request URL: http://192.168.2.127:8000/
Django Version: 1.2.5
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'wikicamp.wiki']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/lib/pymodules/python2.7/django/core/handlers/base.py" in
get_response
  91. request.path_info)
File "/usr/lib/pymodules/python2.7/django/core/urlresolvers.py" in
resolve
  215. for pattern in self.url_patterns:
File "/usr/lib/pymodules/python2.7/django/core/urlresolvers.py" in
_get_url_patterns
  244. patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File "/usr/lib/pymodules/python2.7/django/core/urlresolvers.py" in
_get_urlconf_module
  239. self._urlconf_module =
import_module(self.urlconf_name)
File "/usr/lib/pymodules/python2.7/django/utils/importlib.py" in
import_module
  35. __import__(name)
File "/home/demonstrator/django_projects/wikicamp/../wikicamp/urls.py"
in 
  18.   (r'^wikicamp/(?[^/]+)/save/$',
'wikicamp.wiki.views.save_page'),
File "/usr/lib/pymodules/python2.7/django/conf/urls/defaults.py" in
patterns
  24. t = url(prefix=prefix, *t)
File "/usr/lib/pymodules/python2.7/django/conf/urls/defaults.py" in
url
  34. return RegexURLResolver(regex, urlconf_module, kwargs,
app_name=app_name, namespace=namespace)
File "/usr/lib/pymodules/python2.7/django/core/urlresolvers.py" in
__init__
  143. self.regex = re.compile(regex, re.UNICODE)
File "/usr/lib/python2.7/re.py" in compile
  190. return _compile(pattern, flags)
File "/usr/lib/python2.7/re.py" in _compile
  245. raise error, v # invalid expression

Exception Type: error at /
Exception Value: syntax error

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.