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:
>
>
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.
> Y
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
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
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 djan
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('clini
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()
ur
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 :
>
>
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
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
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
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'
12 matches
Mail list logo