-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Middleware Errors on New Project #827
Comments
The requirements file on the master branch currently lists Django==1.10.1 so I think it shouldn't be a 1.9.x issue here? |
@chromakey is a new project? I'm trying to reproduce the error based on your cookiecutter configs. to the error described occurs, which command you executed? |
Brand new project. Created it running this:
After installing the requirements and doing the migration, I ran the project with this
PostgreSQL database if it matters. |
@chromakey Are you in a virtualenv and could you run:
|
Ubuntu 16.04 with Python 3.5.2 if either matters.
|
That looks right. |
I got this on migration (running on py2.7, but said "use python3: y" as @chromakey did. I know that's wrong, but it happened...
And, I got the same |
I received that warning as well @ssteinerx but I didn't include it in the traceback. |
Is there both a That doesn't explain the exception (I don't think?), but we shouldn't have both in any case as |
@chromakey @jayfk I can confirm the error. |
There does not seem to be an instance of
|
I think I found the issue. It's with django-debug-toolbar. Commenting it out in the configuration seems to get everything to work. I found this recently merged PR: jazzband/django-debug-toolbar#879 It looks like pypi hasn't been updated yet to reflect the merged changes. |
@chromakey please test the branch git clone -b fix-debug-toolbar-issue-827 --single-branch https://github.com/pydanny/cookiecutter-django.git
cookiecutter cookiecutter-django/ after that, create a new clean virtualenv and load, and inside the created project, run: pip install -r requirements/local.txt -r requirements/test.txt -r requirements/production.txt
python manage.py migrate
python manage.py runserver |
@luzfcb using your instructions above I was able to get it to run successfully with no additional changes. |
fixed in cbb132c |
Generated a brand new project this morning using master. Installed requirements and ran the initial migrations. No changes were made to the generated code. Wondering if this error might be related to this PR which was merged about 10 hours ago: #793.
Thank you everyone for your work on this great project.
Project Settings:
The text was updated successfully, but these errors were encountered: