Anshul
sure
Doragonsureiyā
you want my url code?
To share code or error tracebacks, use a pasting service, like:
- https://linkode.org
- https://dpaste.org
Anshul
from django.urls import path, include
from tutorials import views
urlpatterns = [
path(r'^api/tutorials$', views.tutorial_list),
path(r'^api/tutorials/(?P<pk>[0-9]+)$', views.tutorial_detail),
path(r'^api/tutorials/published$', views.tutorial_list_published),
]
Anshul
this is my app level file
Anshul
from django.urls import path, include
from django.contrib import admin
urlpatterns = [
path(r'^$', include('tutorials.urls')),
path('admin/', admin.site.urls),
]
Anshul
this is my project level urls.py file
Charly
And what url are you accesing in your browser?
Anshul
http://localhost:7002/api/tutorial
Anshul
or http://localhost:7002
Charly
Anshul
Still Not working
Anshul
http://localhost:7002/api/tutorials ??
Anshul
I've used this
Charly
Anshul
just a sec
Anshul
from django.urls import path, include
from tutorials import views
urlpatterns = [
path(r'^api/tutorials$', views.tutorial_list),
path(r'^api/tutorials/(?P<pk>[0-9]+)$', views.tutorial_detail),
path(r'^api/tutorials/published$', views.tutorial_list_published),
]
Charly
Anshul
I'm sorry but this is not working
Charly
Anshul
yaa sure
Anshul
from django.urls import path, include
from django.contrib import admin
urlpatterns = [
path('', include('tutorials.urls')),
path('admin/', admin.site.urls),
]
Anshul
FYI I'm learning with this tutorial
Anshul
I'm following this
Charly
Anshul
just a sec
Anshul
Yes but not working
Charly
Anshul
Yes
Charly
Yes
show the debug error please
Charly
Anshul
Ummm.,...
Charly
you are folloing a tutorial for the old version of ddjango
Anshul
Ohhk
Charly
Anshul
trying this
Doragonsureiyā
Anshul
Aleksej
Hello,
How can one easily validate json web token on back end, its stored as cookie on react front end, do I pass it over axios everytime or I can get it from request object in some different way somehow?
Cheryl
Am new to django
Doragonsureiyā
Am new to django
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
hydrozzen
can only concatenate str (not "NoneType") to str
This is coming when i made a django website,in a payment form
Neo
cj
Neo
Ideally use a serializer to work with user input
hydrozzen
I know the eroor is clear,but I can't found that
Let me say
There are two pages contactus.html or payment.html
Both have use of django,the contact us page works fine the info het rendered to my gmail account but payment.html throws this error,i almost copied the whole code,made changes in urls.py and views.py
Neo
You make it incredibly hard to help you. Share your code
cj
Greg
hey guys, who knows, how to get information from a query request in django graphene. I need to do logging, in particular, I need to save which query with parameters request was sent
RK
Plz some one help me how to deploy django project in AWS Server
RK
Plz provide atleast documentation
RK
But I'm fresher ..I'm unable to understand
Django
star
How to do add to cart in django
umarxon
djangonauts I have question for you: I have a "Book" model and it has several fields including integerfield "amount", boolean field called "available". I want to make it true when its "amount" equals 0. any ideas?
Alex
it was method name
Alex
umarxon
umarxon
create or save?
star
Alex
create or save?
own custom method, thus boolean field will be not required.
Alex
:Property method
umarxon
Anonymous
Hello.
If i create an app, lets say "foo", with
manage.py startapp foo
- shall i create git branch "foo" for it?
So there will be master branch, dev one, and in dev all apps(branch per app).
Plz advice.
Alex
Anonymous
all in one
So all in "dev", and put it into "master"(or lets say "release") if all implemented?
Neo
Doragonsureiyā
Neo
branching strategies are not python django specific, please move to @pythonofftopic
Alex
Anonymous
Raj
Can some provide good resources to learn postgresql
eugene
Kevin
Hi! I'm doing a django app, and I'm not sure where I should be placing my model methods, and when I should be using serializers and when not to do it
Sergey
Hi I have problem with debugging on Mac, I have error for encoding or something like that. Anyone can help?
Stéphane P