[Django] #16503: My first django app

2 views
Skip to first unread message

Django

unread,
Jul 23, 2011, 2:23:15 PM7/23/11
to django-...@googlegroups.com
#16503: My first django app
----------------------------+-------------------------------
Reporter: pmiloszewicz@… | Owner: nobody
Type: Uncategorized | Status: new
Milestone: | Component: HTTP handling
Version: 1.3 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------+-------------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/16503>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 23, 2011, 2:35:35 PM7/23/11
to django-...@googlegroups.com
#16503: My first django app
------------------------------------------+-------------------------------
Reporter: pmiloszewicz@… | Owner: nobody
Type: Uncategorized | Status: closed
Milestone: | Component: HTTP handling
Version: 1.3 | Severity: Normal
Resolution: invalid | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+-------------------------------
Changes (by aaugustin):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/16503#comment:1>

Reply all
Reply to author
Forward
0 new messages