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:
>
> 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.
>> 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 at 09:16, Saeed Pooladzadeh 
>> wrote:
>>
>>> 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 django.conf.urls import url


 urlpatterns = [
 path('admin/', admin.site.urls),
 path('appointments/', include('appointments.urls')),
 path('clinic/', include('clinic.urls')),
 path('', include('clinic.urls'))
 ]
 Sincerely yours,

  Joel G Mathew



 On Sun, 25 Nov 2018 at 08:33, Saeed Pooladzadeh 
 wrote:

>
> 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()
>
> urlpatterns = [
> # Examples:
> # url(r'^$', DjangoWebProject19.views.home, name='home'),
> # url(r'^DjangoWebProject19/',
> include('DjangoWebProject19.DjangoWebProject19.urls')),
>
> # Uncomment the admin/doc line below to enable admin documentation:
>  #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
> # Uncomment the next line to enable the admin:
>  #url(r'^admin/', include(admin.site.urls)),
> ]
>
> در شنبه 24 نوامبر 2018، ساعت 18:54:47 (UTC-8)، Joel نوشته:
>>
>> 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 :
>>>
>>> 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
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visi

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.
> 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 at 09:16, Saeed Pooladzadeh  > wrote:
>
>> 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 django.conf.urls import url
>>>
>>>
>>> urlpatterns = [
>>> path('admin/', admin.site.urls),
>>> path('appointments/', include('appointments.urls')),
>>> path('clinic/', include('clinic.urls')),
>>> path('', include('clinic.urls'))
>>> ]
>>> Sincerely yours,
>>>
>>>  Joel G Mathew
>>>
>>>
>>>
>>> On Sun, 25 Nov 2018 at 08:33, Saeed Pooladzadeh  
>>> wrote:
>>>

 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()

 urlpatterns = [
 # Examples:
 # url(r'^$', DjangoWebProject19.views.home, name='home'),
 # url(r'^DjangoWebProject19/', 
 include('DjangoWebProject19.DjangoWebProject19.urls')),

 # Uncomment the admin/doc line below to enable admin documentation:
  #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

 # Uncomment the next line to enable the admin:
  #url(r'^admin/', include(admin.site.urls)),
 ]

 در شنبه 24 نوامبر 2018، ساعت 18:54:47 (UTC-8)، Joel نوشته:
>
> 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 :
>>
>> 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
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to django-users...@googlegroups.com.
>> To post to this group, send email to django...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to django-users...@googlegroups.com.
 To post to this group, send email to django...@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/5de3847c-b109-4579-8b48-c62284191233%40googlegroups.com
>>  
>> 
>> 

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 admin page. What 
> exactly are you trying to do? Post everything relevant.
> Sincerely yours,
>
>  Joel G Mathew
>
>
>
> On Sun, 25 Nov 2018 at 09:16, Saeed Pooladzadeh  > wrote:
>
>> 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 django.conf.urls import url
>>>
>>>
>>> urlpatterns = [
>>> path('admin/', admin.site.urls),
>>> path('appointments/', include('appointments.urls')),
>>> path('clinic/', include('clinic.urls')),
>>> path('', include('clinic.urls'))
>>> ]
>>> Sincerely yours,
>>>
>>>  Joel G Mathew
>>>
>>>
>>>
>>> On Sun, 25 Nov 2018 at 08:33, Saeed Pooladzadeh  
>>> wrote:
>>>

 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()

 urlpatterns = [
 # Examples:
 # url(r'^$', DjangoWebProject19.views.home, name='home'),
 # url(r'^DjangoWebProject19/', 
 include('DjangoWebProject19.DjangoWebProject19.urls')),

 # Uncomment the admin/doc line below to enable admin documentation:
  #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

 # Uncomment the next line to enable the admin:
  #url(r'^admin/', include(admin.site.urls)),
 ]

 در شنبه 24 نوامبر 2018، ساعت 18:54:47 (UTC-8)، Joel نوشته:
>
> 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 :
>>
>> 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
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to django-users...@googlegroups.com.
>> To post to this group, send email to django...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to django-users...@googlegroups.com.
 To post to this group, send email to django...@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/5de3847c-b109-4579-8b48-c62284191233%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/

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 at 09:16, Saeed Pooladzadeh  wrote:

> 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 django.conf.urls import url
>>
>>
>> urlpatterns = [
>> path('admin/', admin.site.urls),
>> path('appointments/', include('appointments.urls')),
>> path('clinic/', include('clinic.urls')),
>> path('', include('clinic.urls'))
>> ]
>> Sincerely yours,
>>
>>  Joel G Mathew
>>
>>
>>
>> On Sun, 25 Nov 2018 at 08:33, Saeed Pooladzadeh 
>> wrote:
>>
>>>
>>> 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()
>>>
>>> urlpatterns = [
>>> # Examples:
>>> # url(r'^$', DjangoWebProject19.views.home, name='home'),
>>> # url(r'^DjangoWebProject19/',
>>> include('DjangoWebProject19.DjangoWebProject19.urls')),
>>>
>>> # Uncomment the admin/doc line below to enable admin documentation:
>>>  #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>>>
>>> # Uncomment the next line to enable the admin:
>>>  #url(r'^admin/', include(admin.site.urls)),
>>> ]
>>>
>>> در شنبه 24 نوامبر 2018، ساعت 18:54:47 (UTC-8)، Joel نوشته:

 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 :
>
> 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
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5de3847c-b109-4579-8b48-c62284191233%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.

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 django.conf.urls import url
>
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('appointments/', include('appointments.urls')),
> path('clinic/', include('clinic.urls')),
> path('', include('clinic.urls'))
> ]
> Sincerely yours,
>
>  Joel G Mathew
>
>
>
> On Sun, 25 Nov 2018 at 08:33, Saeed Pooladzadeh  > wrote:
>
>>
>> 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()
>>
>> urlpatterns = [
>> # Examples:
>> # url(r'^$', DjangoWebProject19.views.home, name='home'),
>> # url(r'^DjangoWebProject19/', 
>> include('DjangoWebProject19.DjangoWebProject19.urls')),
>>
>> # Uncomment the admin/doc line below to enable admin documentation:
>>  #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>>
>> # Uncomment the next line to enable the admin:
>>  #url(r'^admin/', include(admin.site.urls)),
>> ]
>>
>> در شنبه 24 نوامبر 2018، ساعت 18:54:47 (UTC-8)، Joel نوشته:
>>>
>>> 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 :

 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

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to django-users...@googlegroups.com.
 To post to this group, send email to django...@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5de3847c-b109-4579-8b48-c62284191233%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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('', include('clinic.urls'))
]
Sincerely yours,

 Joel G Mathew



On Sun, 25 Nov 2018 at 08:33, Saeed Pooladzadeh  wrote:

>
> 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()
>
> urlpatterns = [
> # Examples:
> # url(r'^$', DjangoWebProject19.views.home, name='home'),
> # url(r'^DjangoWebProject19/',
> include('DjangoWebProject19.DjangoWebProject19.urls')),
>
> # Uncomment the admin/doc line below to enable admin documentation:
>  #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
>
> # Uncomment the next line to enable the admin:
>  #url(r'^admin/', include(admin.site.urls)),
> ]
>
> در شنبه 24 نوامبر 2018، ساعت 18:54:47 (UTC-8)، Joel نوشته:
>>
>> 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 :
>>>
>>> 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
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA%3Diw_85x0Mv8UW-qjeJ8WwzCvF3KhDRAE1EA%2B8-OqmcNXKbuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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()

urlpatterns = [
# Examples:
# url(r'^$', DjangoWebProject19.views.home, name='home'),
# url(r'^DjangoWebProject19/', 
include('DjangoWebProject19.DjangoWebProject19.urls')),

# Uncomment the admin/doc line below to enable admin documentation:
 #url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
 #url(r'^admin/', include(admin.site.urls)),
]

در شنبه 24 نوامبر 2018، ساعت 18:54:47 (UTC-8)، Joel نوشته:
>
> 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 :
>>
>> 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
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/10d16b02-ea16-4550-b9a1-f098572c20e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 :
>
> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA%3Diw_-kxrzQdZEUAX6UY4OaFpGsSDj6w89xGNW9U73p6dnQ3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/24fc6b59-3342-4a9b-b3f5-075e64518c5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8faa1028-1a4c-4fb1-8f16-8e20b810ce2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 'hellops.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[24/Nov/2018 12:53:01] "GET
/static/assets/app/media/img/misc/user_profile_bg.jpg HTTP/1.1" 200 8192
[24/Nov/2018 12:53:02] "GET /accounts/logout/ HTTP/1.1" 302 0
[24/Nov/2018 12:53:02] "GET /accounts/login/ HTTP/1.1" 200 9208
[24/Nov/2018 12:53:02] "GET /static/assets/app/media/img/logos/logo-1.png
HTTP/1.1" 200 3475
[24/Nov/2018 12:53:05] "POST /accounts/login/ HTTP/1.1" 302 0
[24/Nov/2018 12:53:05] "GET /dashboard/ HTTP/1.1" 200 233576
[24/Nov/2018 12:53:06] "GET
/static/assets/vendors/custom/fullcalendar/fullcalendar.bundle.css
HTTP/1.1" 200 8192
[24/Nov/2018 12:53:06] "GET /static/hellops-logos/x48/Peugeot-logo-x48.png
HTTP/1.1" 200 5256
[24/Nov/2018 12:53:06] "GET
/static/hellops-logos/x48/Volkswagen-logo-x48.png HTTP/1.1" 200 5465
[24/Nov/2018 12:53:06] "GET /static/hellops-logos/x48/Renault-logo-x48.png
HTTP/1.1" 200 3717
[24/Nov/2018 12:53:06] "GET /static/assets/app/media/img/blog/blog1.jpg
HTTP/1.1" 200 88643
[24/Nov/2018 12:53:06] "GET /static/assets/app/media/img/users/user1.jpg
HTTP/1.1" 200 8583
[24/Nov/2018 12:53:06] "GET /static/assets/app/media/img/users/user5.jpg
HTTP/1.1" 200 9674
[24/Nov/2018 12:53:06] "GET /static/assets/app/media/img/users/user4.jpg
HTTP/1.1" 200 8627
[24/Nov/2018 12:53:06] "GET /static/assets/app/media/img/users/100_4.jpg
HTTP/1.1" 200 11984
[24/Nov/2018 12:53:06] "GET /static/assets/app/media/img/users/100_11.jpg
HTTP/1.1" 200 14410
[24/Nov/2018 12:53:06] "GET /static/assets/app/media/img/users/100_13.jpg
HTTP/1.1" 200 17908
[24/Nov/2018 12:53:06] "GET /static/assets/app/media/img/users/100_14.jpg
HTTP/1.1" 200 17255
[24/Nov/2018 12:53:06] "GET
/static/assets/app/media/img/products/product6.jpg HTTP/1.1" 200 255923
[24/Nov/2018 12:53:06] "GET
/static/assets/app/media/img/products/product11.jpg HTTP/1.1" 200 171862
[24/Nov/2018 12:53:06] "GET
/static/assets/app/media/img/client-logos/logo1.png HTTP/1.1" 200 3392
[24/Nov/2018 12:53:06] "GET
/static/assets/app/media/img/client-logos/logo2.png HTTP/1.1" 200 4231
[24/Nov/2018 12:53:06] "GET
/static/assets/app/media/img/client-logos/logo3.png HTTP/1.1" 200 3405
[24/Nov/2018 12:53:06] "GET
/static/assets/app/media/img/client-logos/logo5.png HTTP/1.1" 200 3051
[24/Nov/2018 12:53:06] "GET
/static/assets/app/media/img/client-logos/logo4.png HTTP/1.1" 200 5461
[24/Nov/2018 12:53:06] "GET
/static/assets/app/media/img/products/product10.jpg HTTP/1.1" 200 8192
[24/Nov/2018 12:53:07] "POST
/dashboard/inc/api/datatables/demos/default.php HTTP/1.1" 404 3925
Forbidden (CSRF token missing or incorrect.): /vehicule/create/
[24/Nov/2018 12:53:08]
"pagination%5Bpage%5D=1&pagination%5Bperpage%5D=10&sort%5Bsort%5D=asc&sort%5Bfield%5D=OrderID&query=GET
/vehicule/create/ HTTP/1.1" 403 2536


The last line was on red.
And the Browser output is :

Forbidden (403)

CSRF verification failed. Request aborted.
Help

Reason given for failure:

CSRF token missing or incorrect.


In general, this can occur when there is a genuine Cross Site Request
Forgery, or when Django's CSRF mechanism
 has not been used
correctly. For POST forms, you need to ensure:

   - Your browser is accepting cookies.
   - The view function passes a request to the template's render
   

   method.
   - In the template, there is a {% csrf_token %} template tag inside each
   POST form that targets an internal URL.
   - If you are not using CsrfViewMiddleware, then you must use csrf_protect
   on any views that use the csrf_token template tag, as well as those that
   accept the POST data.
   - The form has a valid CSRF token. After logging in in another browser
   tab or hitting the back button after a login, you may need to reload the
   page with the form, because the token is rotated after a login.

You're seeing the help section of this page because you have DEBUG = True
in your Django settings file. Change that to False, and only the initial
error message will be displayed.

You can customize this page using the CSRF_FAILURE_VIEW setting.
-

Any Idea ??

Thank you so much guys

On Wed, Nov 21, 2018 at 9:25 AM Gear Crew 
wrote:

> send us screenshot from issue
>
> On Wednesday, 21 November 2018 15:38:19 UTC+2, Rabah Saadi wrote:
>>
>> Hello,
>>
>> I've been using Django 2.2Dev for a while now, since April 2018, and it
>> is working just fine (I got my reasons why Django Dev). But since the last
>> git pull, it shows the CSRF token missing, on every pa

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 'marvellous.django_session' doesn't exist")

Exception Location:
C:\Users\ansh\Desktop\Dje\project1\django-env\lib\site-packages\MySQLdb\connections.py
in query, line 277
Python Executable:
C:\Users\ansh\Desktop\Dje\project1\django-env\Scripts\python.exe
Python Version: 3.6.5
Python Path:

['C:\\Users\\ansh\\Desktop\\Dje\\project1\\carpool',
 'C:\\Users\\ansh\\Desktop\\Dje\\project1\\django-env\\Scripts\\python36.zip',
 'C:\\Users\\ansh\\AppData\\Local\\Programs\\Python\\Python36\\DLLs',
 'C:\\Users\\ansh\\AppData\\Local\\Programs\\Python\\Python36\\lib',
 'C:\\Users\\ansh\\AppData\\Local\\Programs\\Python\\Python36',
 'C:\\Users\\ansh\\Desktop\\Dje\\project1\\django-env',
 'C:\\Users\\ansh\\Desktop\\Dje\\project1\\django-env\\lib\\site-packages']

Server time: Sat, 24 Nov 2018 09:14:09 +
[image: Mailtrack]

Sender
notified by
Mailtrack

11/24/18,
2:48:51 PM

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHMQ532Rtsu%2BACE0703cBMW19WXtoXSVx75um%3D2C5j7Nuscakg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.