Am running django 1.8.2 final 0 on Ubuntu 14.04 LTS
--
Ticket URL: <https://code.djangoproject.com/ticket/25066>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_docs: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
Hi,
I can't reproduce the behavior you're describing: when I generate a new
project with Django 1.8.2, the `urls.py` file has no mention of
`patterns()`.
Can you make sure you're using the correct version?
There were some mentions of this function in the comments at the top of
the file but those were fixed in #24635 (and the changes are already part
of Django 1.8.2).
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/25066#comment:1>
* Attachment "django-admin_issue.txt" added.
Comment (by lym):
Below is the sequence of commands I ran and it still happens for me, after
installing the latest django with pip v7:
$ mkdir issue_tester
$ cd issue_tester/
$ virtualenv -p /usr/bin/python
$ .env/bin/pip3 install --upgrade pip
$ .env/bin/pip3 install django
$ vim .env/lib/python3.4/site-packages/django/__init__.py # to confirm
django is 1.8.2
$ django-admin startproject issue_tester .
$ vim issue_tester/urls.py # the contents of this file are in the
attached file. You'll notice patterns() is imported and invoked
Am I just doing something wrong?
--
Ticket URL: <https://code.djangoproject.com/ticket/25066#comment:2>
Comment (by bmispelon):
I think you should be using `.env/bin/django-admin` rather than simply
`django-admin`.
It seems that you have an older version of Django installed globally. You
can confirm by doing `django-admin --version`.
--
Ticket URL: <https://code.djangoproject.com/ticket/25066#comment:3>
* resolution: worksforme => fixed
Comment:
Yes @bmispelon, you're right. I was referencing an older `django-admin`.
Works fine now. I should've double-checked. Sorry about that and thanks
for your time.
--
Ticket URL: <https://code.djangoproject.com/ticket/25066#comment:4>