Re: Creating superuser

2018-10-04 Thread Aware Fun
Migrate your database On Thu, Oct 4, 2018, 10:30 PM VIPIN VIPIN wrote: > I had created superuser successfully > But whenever I go to admin panel in my server, it does not give me any > login page > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Update the django project from local to production

2018-08-25 Thread Aware Fun
Install POSTGRESQL database for production.In django sqlite is build in database and only use for local. rahul On Sat, Aug 25, 2018, 3:04 PM Kamal Sharma wrote: > Hey, > How i have deployed my django project to my VPS and now i have done some > change in my local django project and want to upda

Re: TypeError: view must be a callable or a list/tuple in the case of include().

2018-08-25 Thread Aware Fun
rahul On Fri, Aug 24, 2018, 3:17 AM herve kabore wrote: > this is the urls.py > > > from django.conf.urls import include,url > from django.contrib import admin > > urlpatterns = [ > url(r'^admin/', include(admin.site.urls)), > > url(r'^$', 'blog.views.home', name='home'), > ] > > > this

Re: Insert values in python manage.py shell using custom sql

2018-08-23 Thread Aware Fun
Primary key is a unique kye that differentiate you values like in order 1,2,3 like this or u can say that your values are are stored in order.In django when u create object and give values first it by default assign the primary key to 1. rahul On Thu, Aug 23, 2018, 11:20 PM Vishak Raj wrote:

Re: Insert values in python manage.py shell using custom sql

2018-08-23 Thread Aware Fun
We dont need to give primary key it automatically define the key. rahul On Thu, Aug 23, 2018, 11:20 PM Vishak Raj wrote: > Hello > > Thanks for replying.. > > I have a confusion > > In normal python shell, we import sqlite3 and insert values without giving > the Id or primary key.. > > Why we