Anonymous
def register(request): return render(request, 'santhoshapp/hi.html')
Anonymous
hi.html
Anonymous
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>SANTHOSH APP </title> </head> <body> Santhosh app <a href="santhoshapp/test.html">test</a> </body> </html>
Anonymous
urls.py
Anonymous
from django.contrib import admin from django.urls import path, include from django.views.generic.base import TemplateView from .import views urlpatterns = [ path('', views.register, name='santhosh'), ]
Anonymous
i'm getting the output
Anonymous
but
Anonymous
in output page if i click the href link its not going to that another html page
Anonymous
Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/santhoshapp/templates/santhoshapp/test.html Using the URLconf defined in manikandan.urls, Django tried these URL patterns, in this order: admin/ [name='santhosh'] The current path, santhoshapp/templates/santhoshapp/test.html, didn't match any of these.
Anonymous
error displaying like this
Siddu
Can anyone help me how to implement push notifications in android and web using firebase cloud messaging(FCM)...means I want know which library is suitable for this.
Anonymous
Let them finish my issue first I’m waiting from past 9 hours bro
Anonymous
Who’s the admin for the page hey admin please make this page to share photos yaar then how they will help us @Django_admin
Doragonsureiyā
Who’s the admin for the page hey admin please make this page to share photos yaar then how they will help us @Django_admin
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Anonymous
Then change the group name something
Shubham
A startup is looking for developers anybody interested can dm
Kushal
pastebin.com/r1hytNLA
Kushal
pastebin.com/r1hytNLA
How to solve this problem
Mirco
How to solve this problem
You don't have the instance you are trying to get
Shreehari
hey guys with post request on https serve, im getting error "CSRF Failed: Referer checking failed - no Referer."
Shreehari
added csrf cookie domain, still its the same
Aditya
ImportError: No module named 'secrets' I get this error while django-admin startproject project1
Marko
Hi do somebody know how to generate diagram of django model from .dot file with drageble elements ? have used py manage.py graph_models to create it, I got the diagram using .dot file but its elements are static, thanks for help
ms tk
is anyone used pusher in django
Kushal
http://pastebin.com/r1hytNLA
Kushal
How to solve this problem
Mirco
Stop spamming the same question
Mirco
And try to understand the message raised by Django It's one of the most common one
Kushal
Not solved sir
Aneesh
Is there any problem if I define multiple staticfiles_dir in the settings
Carbon
no
Mirco
Not solved sir
Study better Django and you will understand how to solve it It's the simplest scenario
Mirco
The resource you r trying to get does not exist
Mirco
The id you are passing into the get method does not refer to any of your instances
kamaraj
Indentation error at the line not able to solve
Shihasz
Indentation error at the line not able to solve
Please, this is not worth asking.. Just trace ur code
kamaraj
sorry please wait i am sending the log
kamaraj
i know this is simple
kamaraj
def index(request): dests = Destination.objects.all() return render(request, 'index.html',{"dests":dests})
kamaraj
in the 2nd line sorry i indentation mismatched while copy paste
Shihasz
This is not a code specific problem. Only u can solve this
Alex
#Subject #Multi-Tenancy --- Hey Guys. Do you know how can I use a tenant model as user, I am trying to use foreing key, but no having success, if you have some Ideas.
Mihir
How to implement custom admin panel and replace default django admin panel
Sachin
I am new to django and created my first web app The admin section is working properly on my localhost But when i deployed it on heroku no css is applied How could i fix it??
Beka
Hi guys help the novice PJ, here I have Regexvalidator does not work how to do? If you write with a space, the error DATA VALUE (3) models.CharField('Номер ', max_length=15, validators=[ validators.RegexValidator(regex=r'^([A-Z]{2,4}\s\d{2,4}-\d{2,4}$)|([A-Z]{2,4}\s\d{2,8}$)....
Beka
" LMR 23-23 "
Beka
if i write this
Anonymous
hi people, does anybody know, is it possible to bring website online whitout deploying it. For example i want to show website to some friends but i don't want to deploy it. How can i use local serve to do that?
Adarsh
Hey I need some help in implementing cnn 1D
Anonymous
what web hosting would you recommend to deploy. Not heroku or pyrhoneverywhere. Maybe vps where i can just connect through ssh
Anonymous
🙏thanks
Anonymous
use ngrok search ngrok on google
Sourav
Friends just help me out in DRF issue: I am using same serializer for Post and Put methods. But id field is read only, which is ok for Post but during Update i am not getting id...so what cud be done??
Mirco
So get the id from your list endpoint
Sourav
You don't need to put the id into the payload, you have to call your PUT with the id into the url
This case is with nested serializer... The nested serializer id is read only when posting so it creates id automatically....but since id is read only so while updation, it is removed by DRF from the serializer but i want id during updation as well
Sourav
So i added the id field to tje nested field explicitly id = serializers.IntegeField(required=False)
Sourav
So in post it is not compulsory and i will get id in PUT as well
Kushal
pastebin.com/agX4J7Pf
Kushal
pastebin.com/agX4J7Pf
Problem while editing
Code
pastebin.com/agX4J7Pf
looks like 'admin' is not a part of the available options (Choices are: bev_cat_id, bev_cat_id_id, date_created, id, name, price, quantity, receiveorder, tableorder).. recheck your structure/query
Aditya
Check urls.py file
Code
:)
Code
Solved problem sir
:). Was ‘admin’ the problems?
Cloud
I am new to django, should i start with Django 2 or Django 3?
Dhruva
How can I have countries and states mapping
Cloud
3
Thanks
Dhruva
In the Api
Anonymous
https://stackoverflow.com/questions/61506771/recursionerror-trouble please help me out
ps
How can we use a drop down in django admin for states?
Alberto
Hi everyone. I need to call variables of one app from other app in the same project, how can I do that?