HttpResponseRedirect failed in django 2.1

2018-12-24 Thread ali reza
Greetings! Question: I wrote a view (def register(request)) to check if DB is empty, user can to create a new SuperUser. When DB is empty, “register” view works fine on GET request. but when user is submitting her/his info (via POST request), then he/she must be redirected to “login” url (me

Re: I can't see my models in MySQL db

2018-07-14 Thread ali reza
Hi all, I attached my Django project as a ZIP file. please help me to find and fix the root cause of issue. Link: https://ufile.io/ycmut Thanks in advance On Wednesday, 4 July 2018 17:50:49 UTC+4:30, ali reza wrote: > > Greetings! > > *Note:* > mysite is the name of project. &g

I can't see my models in MySQL db

2018-07-04 Thread ali reza
Greetings! *Note:* mysite is the name of project. django_sb_admin and polls are my apps. python version: 3.6.6 I used *inspectdb* for creating *models.py* for *django_sb_admin* application. *pyhton3 manage.py inspectdb > models.py* # Here inspectdb worked fine. then is moved models.py into djang