Re: problem on django contrib

2018-11-24 Thread Saeed Pooladzadeh
here comes my project: https://drive.google.com/file/d/1IY3x3i6u2TMc20mlCqoXIid62GtbqzaU/view?usp=sharing can you please give a try to it and let me know what is wrong and I can't see the admin page? On Sat, Nov 24, 2018 at 7:59 PM Saeed Pooladzadeh wrote: > here comes my admin page code: > >

Re: problem on django contrib

2018-11-24 Thread Saeed Pooladzadeh
here comes my admin page code: from django.contrib import admin from .models import Post admin.site.register(Post). در شنبه 24 نوامبر 2018، ساعت 19:50:12 (UTC-8)، Joel نوشته: > > You didnt show the admin page. You showed urls.py. path is an easier way > to use urls, without need for regex. >

Re: problem on django contrib

2018-11-24 Thread Saeed Pooladzadeh
where should i place your code? the admin page or urls page? در شنبه 24 نوامبر 2018، ساعت 19:50:12 (UTC-8)، Joel نوشته: > > You didnt show the admin page. You showed urls.py. path is an easier way > to use urls, without need for regex. > Your problem is not clear to me. If it's something on the

Re: problem on django contrib

2018-11-24 Thread Joel Mathew
You didnt show the admin page. You showed urls.py. path is an easier way to use urls, without need for regex. Your problem is not clear to me. If it's something on the admin page. What exactly are you trying to do? Post everything relevant. Sincerely yours, Joel G Mathew On Sun, 25 Nov 2018

Re: problem on django contrib

2018-11-24 Thread Saeed Pooladzadeh
Can you please explain what should I do exactly? should I place these code in admin page? and delete the previous code? در شنبه 24 نوامبر 2018، ساعت 19:32:52 (UTC-8)، Joel نوشته: > > Use path for simple urls: > > from django.contrib import admin > from django.urls import path, include > from

Re: problem on django contrib

2018-11-24 Thread Joel Mathew
Use path for simple urls: from django.contrib import admin from django.urls import path, include from django.conf.urls import url urlpatterns = [ path('admin/', admin.site.urls), path('appointments/', include('appointments.urls')), path('clinic/', include('clinic.urls')), path('',

Re: problem on django contrib

2018-11-24 Thread Saeed Pooladzadeh
here comes the code for urls.py but i cant uncomment it because python doesnt accept it """ Definition of urls for DjangoWebProject19. """ from django.conf.urls import include, url # Uncomment the next two lines to enable the admin: #from django.contrib import admin #admin.autodiscover()

Re: problem on django contrib

2018-11-24 Thread Joel Mathew
Show the screenshot and complete code Sincerely yours, Joel G Mathew On Sun, 25 Nov 2018 at 08:07, Saeed Pooladzadeh wrote: > Hello > > > I'm trying to use Django on the visual studio but for admin page when I > uncomment the > > from django.contrib import admin > > I get this message : >

problem on django contrib

2018-11-24 Thread Saeed Pooladzadeh
Hello I'm trying to use Django on the visual studio but for admin page when I uncomment the from django.contrib import admin I get this message : unexpected token and it can't accept this line of code, please inform me why. Should I install a specific package or something? thanx Saeed

Re: Error when running python manage.py collectstatic

2018-11-24 Thread Jason
I suspect this is not an issue with django itself, but rather the python language runtime on windows https://bugs.python.org/issue31047#msg328322 It'll be included in the next python patch release, I suspect. -- You received this message because you are subscribed to the Google Groups

Re: Forbidden (CSRF token missing or incorrect.)

2018-11-24 Thread Rabah Saadi
Here the screenshots : - (hellops-G3NgZpUh) rango@Pavilion:~/dev/hellops$ python manage.py runserver Performing system checks… System check identified no issues (0 silenced). November 24, 2018 - 12:52:56 Django version 2.2.dev20181124001902, using settings

How to restore django_session table?

2018-11-24 Thread Ansh Srivastava
I am getting the following error: ProgrammingError at /admin/ (1146, "Table 'marvellous.django_session' doesn't exist") Request Method: GET Request URL: http://127.0.0.1:8000/admin/ Django Version: 2.1.3 Exception Type: ProgrammingError Exception Value: (1146, "Table