Re: Error at OneToOneField in models while creating new models class

2018-09-26 Thread Srinivas Gadi
rcase... >>> >>> My friend.. you are not making migrations... look at you have to do this: >>> >>> >>> 1. Delete your migration folder >>> 2. Delete you app table manually (DROP table) >>> 3. python manage.py makemigrations app_na

Re: When I click on submit button on login page, its redirecting to an random csrf token page in django

2018-09-25 Thread Srinivas Gadi
:33 PM UTC+2, Srinivas Gadi wrote: >> >> >> When I clock on the login page, it supposed to save the data in DB but >> instead URL being redirected to csrf token page. >> >> url.py >> >> from django.conf.urls import urlfrom . import viewsfrom >>

When I click on submit button on login page, its redirecting to an random csrf token page in django

2018-09-24 Thread Srinivas Gadi
When I clock on the login page, it supposed to save the data in DB but instead URL being redirected to csrf token page. url.py from django.conf.urls import urlfrom . import viewsfrom django.contrib.auth.views import login, logout urlpatterns = [ url(r'^$', views.home), url(r'home',views.home,

Re: Error at OneToOneField in models while creating new models class

2018-09-24 Thread Srinivas Gadi
My friend.. you are not making migrations... look at you have to do this: > > > 1. Delete your migration folder > 2. Delete you app table manually (DROP table) > 3. python manage.py makemigrations app_name > 4. migrate > > that's all > > El sábado, 22 de septiembre de 2018, 4:10:4

Re: Error at OneToOneField in models while creating new models class

2018-09-23 Thread Srinivas Gadi
Yes, provided the migrations out put in the second mail On Sat, 22 Sep 2018, 17:11 Matthew Pava, wrote: > Did you try running your migrations? > > Get Outlook for Android <https://aka.ms/ghei36> > > > > > On Sat, Sep 22, 2018 at 5:07 AM -0500, "Srinivas G

Re: Error at OneToOneField in models while creating new models class

2018-09-22 Thread Srinivas Gadi
ini\djangoProjects\college>python manage.py migrateOperations to perform:Apply all migrations: admin, auth, contenttypes, sessionsRunning migrations:No migrations to apply. Could someone please guide me how to fix this? On Sat, Sep 22, 2018 at 2:40 PM Srinivas Gadi wrote: > HI All, > > I

Error at OneToOneField in models while creating new models class

2018-09-22 Thread Srinivas Gadi
HI All, I am facing below error while creating a new model class. the error pop up only at this line "user = models.OneToOneField(User)" *"E1120:No value for argument 'on_delete' in constructor call"* from django.db import models from django.contrib.auth.models import User class

Re: How to override the javascript default editable bootstap values in Django

2018-09-17 Thread Srinivas Gadi
Can someone please help me with this? On Sun, Sep 16, 2018 at 4:07 PM Srinivas Gadi wrote: > am stuck at overriding the default editable bootstrap values in Django > framework javascript HTML page > > In my webpage, it coded as below > > > $.fn.editable.defaults

How to override the java script default editable bootstrap values in Django

2018-09-16 Thread Srinivas Gadi
I am stuck at overriding the default editable bootstrap values in Django framework javascript html page In my webpage, it coded as below $.fn.editable.defaults.url = "{% url 'page1' model.PATH %}"; Now my requirement is, When I click on a button, it check the views.py(page1, which is

How to override the javascript default editable bootstap values in Django

2018-09-16 Thread Srinivas Gadi
am stuck at overriding the default editable bootstrap values in Django framework javascript HTML page In my webpage, it coded as below $.fn.editable.defaults.url = "{% url 'page1' model.PATH %}"; Now my requirement is, When I click on a button, it check the views.py(page1, which is