Re: Missing manage.py & settings.py

2019-03-09 Thread Andréas Kühne
If you have added an app via pip install and added it to settings.py, you should not create an app with startapp - and you should definitely not create an app with the same name as a pip installed django app. That will result in conflicts. In this case startapp shouldn't be used no. Regards, And

Re: How to resole Integrity Error caused by NOT NULL

2019-03-09 Thread Vijay Khemlani
Your assign should be new_material_review.material = material_instance instead of new_material_review.material_instance = material_instance that you have now On Sat, Mar 9, 2019 at 4:29 AM Chukwunonso Nwankpa wrote: > Good Morning. > I'm new to django and currently using the framework for a

my first post: makemigrations polls App 'polls' could not be found. Is it in INSTALLED_APPS?

2019-03-09 Thread maior marso
https://docs.djangoproject.com/en/2.1/intro/tutorial02/ Activating Models After editing polls/.models.py, and updating mysite/ settings.py/installed_apps With ‘polls.apps.PollsConfig’, and changing the time_zone, Ran the python manage.py makemigrations polls Results: " App 'polls' could not be fou

Using signals to populate another model based on new registered user

2019-03-09 Thread Gavin Boyle
Hi all, I am new to working with signals and triggers, what I am trying to accomplish is: 1. When a new user registers, I have another model to deal with subscriptions. 2. I want to create an instance for that subscription model with all the default values based on the new user. 3.

Re: How to resole Integrity Error caused by NOT NULL

2019-03-09 Thread Chukwunonso Nwankpa
Thank you Vijay Khemlani You are indeed a life saver. Chukwunonso Nwankpa Plot 13 Benson .O. Nwanjoku Street, Thinkers Corner, Emene, Enugu, Enugu State, South East Nigeria. > On Mar 9, 2019, at 1:54 PM, Vijay Khemlani wrote: > > Your assign should be > > new_material_review.material = materi

Re: How does WSGI work?

2019-03-09 Thread Scot Hacker
Excellent summary - should be posted for posterity on a blog or something. I don't know enough about wsgi internals to add to this, but would have been nice to have this to read the first time I set up a server, back in the day. ./s On Tuesday, February 26, 2019 at 10:26:43 AM UTC-8, Tal wrot

how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-09 Thread Ando Rakotomanana
Hello, I'm still starting with django. And I have a problem with the creation of the project, I write: "django-admin startproject DjangoTest" in the cmd of my windows and it tells me that django-admin is not an internal command. While I typed the same code this morning in the cmd and it worked.

Re: how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-09 Thread Cathbert Mutaurwa
Try check if django is setup properly in environment variables. Maybe that will help On Sat, 09 Mar 2019, 20:14 Ando Rakotomanana, wrote: > Hello, I'm still starting with django. And I have a problem with the > creation of the project, I write: "django-admin startproject DjangoTest" in > the c

Re: how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-09 Thread Rammanoj Potla
Are you in the virtual environment ?? I guess you might be trying from outside the virtual environment On Sat 9 Mar, 2019, 11:53 PM Cathbert Mutaurwa, wrote: > Try check if django is setup properly in environment variables. > > > Maybe that will help > > On Sat, 09 Mar 2019, 20:14 Ando Rakotoman

Best way to implement listing multiple models in a template using ListView or TemplateView

2019-03-09 Thread Chukwunonso Nwankpa
Hi, Good Morning I am trying to display information and a search from three different models on a page. I could render the search effectively but the challenge is that the list is not being populated. I could only return 1 model on the page plus the search If I access the template through 127.

Re: how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-09 Thread abel otugeme
Make sure your virtual environments are set up well. Also make sure your running that command from the folder where your manage.py file is... On Mar 9, 2019 7:12 PM, "Ando Rakotomanana" wrote: > > Hello, I'm still starting with django. And I have a problem with the creation of the project, I writ

Redirect to another page

2019-03-09 Thread Shashank Singh
I have a model, say ModelA, and on the admin add page of this model i have recieved some parameter based on which i sonetimes want to let the user add a object of the model and sometime wants to redirect to another page. How do I do that? -- You received this message because you are subscribed to