django makemigrations not working

2018-05-05 Thread Gerald Brown
I have dropped my database, deleted all migrations directories and when I run ./manage.py makemigrations I get the message "No changes detected". I am using Django 2.04 with Python 3.5. Any ideas why this is happening? Thanks. -- You received this message because you are subscribed to the Goo

Re:

2018-05-05 Thread Paul Baforh
alright!! No problem!! feel free On Thu, May 3, 2018 at 12:26 PM, Muwanguzi Derrick < muwanguziderri...@gmail.com> wrote: > Hlo am a new django user I want be your friend for help > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsub

django makemigrations not working

2018-05-05 Thread Hervé Edorh
Do you create another database? -- 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 group, send email to d

Re: django makemigrations not working

2018-05-05 Thread Gerald Brown
Yes. I dropped it and then recreated it. Then ran "makemigrations" & "migrate". Migrate is now giving me a lot of errors. Funny that all of the errors that show up are in lines that contain "**/site-packages/django/**", NOT in any lines of MY code. On Saturday, 05 May, 2018 09:17 PM, Hervé

Re: django makemigrations not working

2018-05-05 Thread Zhenning Lang
Maybe the contents of table “django_migrations" in you database should also be removed. I am not quite sure about it > 在 2018年5月5日,下午6:34,Gerald Brown 写道: > > I have dropped my database, deleted all migrations directories and when I run > ./manage.py makemigrations I get the message "No chang

Re: Add extra fields to a ModelAdmin form

2018-05-05 Thread Mark Phillips
James, I was finally able to add extra fields to a ModelForm dynamically! Check out the answer to this post - https://stackoverflow.com/questions/32335349/how-do-i-create-and-save-dynamic-fields-in-django-modeladmin It worked for me in django 2. I have not tried it in django 1.11. I hope this he

Re: django makemigrations not working

2018-05-05 Thread Ruhia gr
hello everyone m new to django and am starting my ecommerce project in djnago .please anyone suggest which is best for ecommerce project(online shopping)django or django cms On Sat, May 5, 2018 at 6:19 PM, Zhenning Lang wrote: > Maybe the contents of table “django_migrations" in you database s

Re: Query Regarding Django Signals

2018-05-05 Thread Ruhia gr
hello everyone m new to django and am starting my ecommerce project in djnago .please anyone suggest which is best for ecommerce project(online shopping)django or django cms On Sat, May 5, 2018 at 11:55 AM, Nipun Arora wrote: > okay thanks people..! > > On Friday, May 4, 2018 at 9:40:12 PM UTC+

Re: I got error when working on "Writing your first Django app, part 5" of tutorial

2018-05-05 Thread 'Anthony Flury' via Django users
ROOT_URLCONF ideally point to the top level project urls.py if you have one - if you point it to an app's urls.py - you have to them make sure you link that app back to all the other (which sort of defeats the point of the app) - and make sure that something you refers forward to the admin urls

Re: sphinx is showing the django base views instead of my own views.py

2018-05-05 Thread 'Anthony Flury' via Django users
Can you be clear what you are trying to do ? Did you want your Sphinx Page to display an alternative Django documentation - i.e. a module reference for Django ? Or did you want your Sphinx Page to document your app  - if so the issue is that your rst just calls for the views module - and that

Re: django makemigrations not working

2018-05-05 Thread Gerald Brown
I tried that too but it kept giving an error about Key constraints. That is why I dropped the whole database and then recreated it.  Will just have to look in to it more. Thanks for your reply. /Who knows what evil lurks in the heart and mind of the computer? *The Shadow knows...*/ On Satu

Re: sphinx is showing the django base views instead of my own views.py

2018-05-05 Thread Anthony Petrillo
Thank you Tony. It is the second option, documenting my code. I changed my rst to (note the site name was changed from game to rival5): views module == .. automodule:: rival5.play.views :members: :undoc-members: :show-inheritance: I have the following added to the path

Re: Fixtures: core.serializers.sort_dependencies sorts models in the wrong order for FK constraints

2018-05-05 Thread Mike Dewhirst
On 5/05/2018 1:19 AM, Andrew Wrigley wrote: Hi all, I'm trying to dump a database fixture, and load it again to run tests. When I run `python manage.py test`, I get: You need to --exclude all models with data not used in any tests. Considering that tests should be run with known data, if

Re: what best for ecommerce project

2018-05-05 Thread Ruhia gr
hello can anyone help me with this since am new to django On Sat, May 5, 2018 at 10:50 PM, Ruhia gr wrote: > hello everyone m new to django and am starting my ecommerce project in > djnago .please anyone suggest which is best for ecommerce project(online > shopping)django or django cms > -- Yo

Re: what best for ecommerce project

2018-05-05 Thread Aditya Singh
Django is best mate. That way you are not limited by the features provided by django-cms. On Sun, May 6, 2018, 11:33 AM Ruhia gr wrote: > hello can anyone help me with this since am new to django > > On Sat, May 5, 2018 at 10:50 PM, Ruhia gr wrote: > >> hello everyone m new to django and am sta

Re: what best for ecommerce project

2018-05-05 Thread Ruhia gr
wether its possible to built ecommerce project using django cms? On Sun, May 6, 2018 at 11:52 AM, Aditya Singh wrote: > Django is best mate. That way you are not limited by the features provided > by django-cms. > > On Sun, May 6, 2018, 11:33 AM Ruhia gr wrote: > >> hello can anyone help me wit

Re: what best for ecommerce project

2018-05-05 Thread Jani Tiainen
Hi, Don't know about django cms but in theory it should be. There also exists Django-oscar which is relatively popular premade ecommerce platform built on top of django. On Sun, May 6, 2018 at 9:31 AM, Ruhia gr wrote: > wether its possible to built ecommerce project using django cms? > > On Su

Re: what best for ecommerce project

2018-05-05 Thread Ruhia gr
how about the installation and compatibility also i heard about django shop what about this On Sun, May 6, 2018 at 12:05 PM, Jani Tiainen wrote: > Hi, > > Don't know about django cms but in theory it should be. > > There also exists Django-oscar which is relatively popular premade > ecommerce pl

Re: what best for ecommerce project

2018-05-05 Thread Jani Tiainen
Hi, Installation and compatibility of what? I don't really do ecommerce so I don't have a clue which is "good". I once tested django-oscar for personal purposes and it worked just fine with minimal configuration. What I understood about django-shop it's more like framework you build your site on

Re: what best for ecommerce project

2018-05-05 Thread Aditya Singh
Hi mate, I have myself built a full stack ecommerce store using django and you need nothing more than django because it is most powerful standalone. Infact Django cms is built on top of that On Sun, May 6, 2018, 12:17 PM Jani Tiainen wrote: > Hi, > > Installation and compatibility of what? > > I