integrating themes in django

2018-05-09 Thread Hitesh Goyal
Hi team, I am new to Django. How can i integrate ready-made website themes in a django project ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Getting error in migrate

2018-05-09 Thread Gerald Brown
Some times you will need to run ./manage.py makemigrations and then ./manage.py migrate . By including the it will only makemigration and migrate for a single application instead of for all of the applications. I have found that this helps as I too was having problems with makemigration

Re: Getting error in migrate

2018-05-09 Thread Pradeep Sharma
I think the problem is that you have already a class brand in your model and you are trying to create other class name brand in your project models..so i suggest check your models.py.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Getting error in migrate

2018-05-09 Thread Mansi Thakkar
Yes I did. On Wed, May 9, 2018 at 2:26 PM, Pradeep Sharma wrote: > Did u run the command of py manage.py makemigrations? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and

Re: Getting error in migrate

2018-05-09 Thread Mansi Thakkar
Yes I did the same thing. I run python manage.py makemigrations first and then python manage.py migrate. On Wed, May 9, 2018 at 3:23 PM, James Farris wrote: > To be absolutely clear, you need to make sure if you made changes to > models.py you need to run > $ python

Case inconsistency

2018-05-09 Thread Jelmer Draaijer
If you like to read, and I suppose you do, here you go: https://stackoverflow.com/questions/4106544/post-vs-post-get-vs-get I remeber this of my PHP days, $_SERVER['REQUEST_METHOD'] equals post or POST? I think https://stackoverflow.com/a/4106575 answers your question. -- You received this

Re: Case inconsistency

2018-05-09 Thread Melvyn Sopacua
On woensdag 9 mei 2018 23:00:06 CEST Matthew Pava wrote: > I came across an interesting issue recently. I had a form with an action > set to "GET". The corresponding view was a django-rest-framework view that > was just supposed to allow for GET requests. However, I couldn't get it to > work

Case inconsistency

2018-05-09 Thread Matthew Pava
I came across an interesting issue recently. I had a form with an action set to "GET". The corresponding view was a django-rest-framework view that was just supposed to allow for GET requests. However, I couldn't get it to work because drf was expecting lower case names, and it turns out

Re: Getting error in migrate

2018-05-09 Thread James Farris
To be absolutely clear, you need to make sure if you made changes to models.py you need to run $ python manage.py makemigrations Then $ python manage.py migrate -James Sent from my mobile device > On May 9, 2018, at 11:26 AM, Pradeep Sharma > wrote: > > Did u

Django content types and sqlmigrate

2018-05-09 Thread jeremy
Hello, I’ve got a question regarding the django_content_type table and sqlmigrate. At work we use sqlmigrate to generate the SQL that is used to create/update tables in production and only use manage.py migrate for local updates and changes. This has been working fine for us until we started

Getting error in migrate

2018-05-09 Thread Pradeep Sharma
Did u run the command of py manage.py makemigrations? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Getting error in migrate

2018-05-09 Thread Mansi Thakkar
Hello Everyone, I am trying to deploy my project using pythonanywhere. I got an error while writing this command python manage.py migrate. Here is attached picture of my error. Please help me solving this problem . Thanks. Best Regards, Mansi Thakkar -- You received this message because

Re: While going through the django tutorial i found error while scripting automated testing.The code and exeptions are mentioned below. Please find what is the error .

2018-05-09 Thread Daniel Hepper
I kind of agree with James, but I think a) that the exception message is not really self-explanatory and b) the instructions in the tutorial at this point are somewhat unclear. You started a plain Python shell with the command "python". You should have used "python manage.py shell" instead, as

Re: While going through the django tutorial i found error while scripting automated testing.The code and exeptions are mentioned below. Please find what is the error .

2018-05-09 Thread James Farris
Instead of giving the answer, I suggest looking at the Traceback section you posted below because the answer is there. Giving you the answer will not help your trouble shooting skills. Sent from my mobile device > On May 9, 2018, at 8:03 AM, Avitab Ayan Sarmah wrote: >

While going through the django tutorial i found error while scripting automated testing.The code and exeptions are mentioned below. Please find what is the error .

2018-05-09 Thread Avitab Ayan Sarmah
shell : >>> import datetime>>> from django.utils import timezone>>> from polls.models >>> import Question>>> # create a Question instance with pub_date 30 days in >>> the future>>> future_question =

Bi-directional ManyToMany usage with ModelForm

2018-05-09 Thread Bernhard Miller
Hello, I'm currently implementing a django-based project that features users and user groups. The two are connected by a ManyToMany relationship. Using the generic django helpers (ModelForm, UpdateView, CreateView, ...) I would like to be able to edit this many to many connection from both