Opened 14 years ago
Closed 14 years ago
#16503 closed Uncategorized (invalid)
My first django app
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | HTTP handling | Version: | 1.3 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Hello,
I've a little problem.
I make my 1st app in django according to docs (https://docs.djangoproject.com/en/1.3/intro/tutorial02/).
I already uncommented lines in urls.py, runned dev server. I go to localhost:8000 and see the error.
This is my trackback.
Environment:
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.3
Python Version: 2.6.0
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'dj.polls']
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 "c:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response
101. request.path_info)
File "c:\Python26\lib\site-packages\django\core\urlresolvers.py" in resolve
250. for pattern in self.url_patterns:
File "c:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_url_patterns
279. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "c:\Python26\lib\site-packages\django\core\urlresolvers.py" in _get_urlconf_module
274. self._urlconf_module = import_module(self.urlconf_name)
File "c:\Python26\lib\site-packages\django\utils\importlib.py" in import_module
35. __import__(name)
Exception Type: IndentationError at /
Exception Value: ('unexpected indent', ('c:\\xampp\\htdocs\\dj\\..\\dj\\urls.py', 4, 1, ' from django.contrib import admin\n'))
Sorry for my English. I hope you understand me.
Note:
See TracTickets
for help on using tickets.
You're facing a problem in your Python code (namely, an indentation error, as indicated by the last line of the error message). This isn't a problem in Django.
This tracker is not a support forum. It's a database of known bugs in Django.
Please use one of the support channels described here: https://docs.djangoproject.com/en/dev/internals/contributing/bugs-and-features/#reporting-bugs for such questions.
Thanks.