Himanshi
Have you check out the official Django website?
No i haven't could you please guide more in detail for steps of developing code for our web application with database connection
奈姆
No i haven't could you please guide more in detail for steps of developing code for our web application with database connection
I'm afraid this isn't the group to ask for step by step guide. You have to do your parts (read docs and code) and ask your questions (about the code you've written) when you get stuck.
Manish
NoReverseMatch at /login Reverse for '' not found. '' is not a valid view function or pattern name. Request Method: POST Request URL: http://127.0.0.1:8000/login?next=/post-job/ Django Version: 5.0.7 Exception Type: NoReverseMatch Exception Value: Reverse for '' not found. '' is not a valid view function or pattern name. Exception Location: C:\Users\DELL\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\urls\resolvers.py, line 851, in _reverse_with_prefix Raised during: authuser.views.login_user Python Executable: C:\Users\DELL\AppData\Local\Programs\Python\Python312\python.exe Python Version: 3.12.4 how to solve this
Manish
I am having this issue how to solve this
Manish
could you share your urlpatterns in urls.py?
from django.urls import path from authuser import views urlpatterns = [ path('candidate-register/', views.register_candidate,name='register_candidate'), path('hr-register/', views.register_hr,name='register_hr'), path('login',views.login_user,name='login_user'), path('logout/',views.logoutUser,name='logout_user') ]
Manish
try path("login/"...)?
I have tried still no reverse match is shown
奈姆
I have tried still no reverse match is shown
are you using {% url "login_user" %} to generate the URL?
Manish
yes
奈姆
did you put the "" around the path name?
Taha
Hi guys I have error Template ont exist But i creat fill html and update base In settings my site
ZeroCool
In my case, I use a directory templates in my root Project, and I configure my settings 'templates'
Taha
Thank you bro
samariddin
Hi guys, how can I exclude retrieve action in ModelViewSet without override retrieve method?
samariddin
Hi guys, how can I exclude retrieve action in ModelViewSet without override retrieve method?
i have to write only create, list and destroy actions with ModelViewSet
samariddin
DRF?
Yes
奈姆
You can use GenericViewSet and mixins
samariddin
You can use GenericViewSet and mixins
If i use it, i can't see apis on spectacular swagger
Vs
Can anyone tell me how can I access Tally Prime data in my ERP module? Using django
Bhavin
Can anyone tell me how can I access Tally Prime data in my ERP module? Using django
You can integrate through Tally's ODBC or XML API. Use Python libraries like pyodbc for ODBC or make HTTP requests to the Tally XML Gateway to fetch or send data.
Damir
How do you add that view in urlpatterns?
Krishna
While using multiple apps within a django project, only first apps urls are loading, for rest of apps its showing page not found
Krishna
Added apps name in settings .py installed apps and included apps urls in project/urls.py installed
奈姆
do you see the registered urls in the debug page UI?
Vs
Thank you
Mohammad Reza
Added apps name in settings .py installed apps and included apps urls in project/urls.py installed
You should put an extra «/» in front of that path in urls.py
Kunal
how to do drf-google-auth?
Mohammad Reza
how to do drf-google-auth?
django-all-auth doc
Kunal
django-all-auth doc
I am asking about drf-google-auth, not django-all-auth
Yurii
I am asking about drf-google-auth, not django-all-auth
https://medium.com/@michal.drozdze/django-rest-framework-jwt-authentication-social-login-login-with-google-8911332f1008
Abdelrhman
Guys, I need help. The templat files are not working
Doragonsureiyā
Guys, I need help. The templat files are not working
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to.
Abdelrhman
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to.
from . import views File "C:\Users\Abdulrahman\OneDrive\Desktop\studybud\base\views.py", line 6 return render(request, 'home.html) ^
Abdulrahman
Try and add a closing hyphen like this, return render(request, 'home.html')
Abdulrahman
What is the structure of your templates directory, did you create another folder in templates before you put home.html, if yes try return render(request, 'foldername/home.html')
Abdelrhman
What is the structure of your templates directory, did you create another folder in templates before you put home.html, if yes try return render(request, 'foldername/home.html')
TemplateDoesNotExist at / home.html Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 5.1.4 Exception Type: TemplateDoesNotExist Exception Value: home.html Exception Location: C:\Users\Abdulrahman\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\template\loader.py, line 19, in get_template Raised during: base.views.home Python Executable: C:\Users\Abdulrahman\AppData\Local\Programs\Python\Python312\python.exe Python Version: 3.12.3 Python Path: ['C:\\Users\\Abdulrahman\\OneDrive\\Desktop\\studybud', 'C:\\Users\\Abdulrahman\\AppData\\Local\\Programs\\Python\\Python312\\python312.zip', 'C:\\Users\\Abdulrahman\\AppData\\Local\\Programs\\Python\\Python312\\DLLs', 'C:\\Users\\Abdulrahman\\AppData\\Local\\Programs\\Python\\Python312\\Lib', 'C:\\Users\\Abdulrahman\\AppData\\Local\\Programs\\Python\\Python312', 'C:\\Users\\Abdulrahman\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages'] Server time: Fri, 20 Dec 2024 22:35:48 +0000
cj
templates out the project folder or what ?
run tree in your project folder and show the output here
cj
its like infinty loop bro
I'm not your bro... and what do you mean by "infinite loop"? it should be something similar to this: ❯ tree . ├── chat │   ├── admin.py │   ├── apps.py │   ├── consumers.py │   ├── __init__.py │   ├── migrations │   │   ├── 0001_initial.py │   │   ├── 0002_auto_20200823_0905.py │   │   ├── 0003_auto_20200823_1119.py │   │   └── __init__.py │   ├── models.py │   ├── routing.py │   ├── services.py │   ├── static │   │   └── chat │   │   ├── default_profile.png │   │   └── style.css │   ├── templates │   │   └── chat │   │   ├── index.html │   │   ├── room.html │   │   ├── room_message.html │   │   ├── room_preview_image.html │   │   └── unauthorized.html
Abdelrhman
I'm not your bro... and what do you mean by "infinite loop"? it should be something similar to this: ❯ tree . ├── chat │   ├── admin.py │   ├── apps.py │   ├── consumers.py │   ├── __init__.py │   ├── migrations │   │   ├── 0001_initial.py │   │   ├── 0002_auto_20200823_0905.py │   │   ├── 0003_auto_20200823_1119.py │   │   └── __init__.py │   ├── models.py │   ├── routing.py │   ├── services.py │   ├── static │   │   └── chat │   │   ├── default_profile.png │   │   └── style.css │   ├── templates │   │   └── chat │   │   ├── index.html │   │   ├── room.html │   │   ├── room_message.html │   │   ├── room_preview_image.html │   │   └── unauthorized.html
No its more and more
cj
No its more and more
just show the relevant part for your issue then
Mathew
I want to integrate azure cloud storage with my django application.. But I am getting error modulenot found error
Mathew
Can anyone please help me out
Charly
I want to integrate azure cloud storage with my django application.. But I am getting error modulenot found error
Maybe you need to learn basic python before trying to use Django and other libraries
Фазлиддин
Please help me find a cool Django Rest Framework course, I'm not English, I'm Russian, but I understand English, we have in Russian-speaking YouTube very little good content on programming because of this I have to look for videos in English.
chintan
Anyone suggest me drf youtube channel
Kunal
H
Does anyone have an idea on how to create an admin user without using the default Django admin?
奈姆
https://docs.djangoproject.com/en/5.1/topics/auth/default/#creating-users
Naphtal
I want to build a REST API alongside Django web app(which is completed). How can I structure it to keep things clean and scalable? Thanks!
Mary
How can I install Django on kali
Doragonsureiyā
How can I install Django on kali
https://www.kali.org/docs/introduction/should-i-use-kali-linux/
Luis
How can I install Django on kali
the same way you install it on any other distribution
Luis
but I don't recommend Kali.
K
I want to host django with coolify. Can anyone help me I'm getting a bad gateway error
Doragonsureiyā
How can I install Django on kali
Impossible to help without details. Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
Prasanna
Hi Team, I m trying to create logout functionality in django application using default django.contrib.auth package. But while using logout functionality getting below error: Method Not Allowed (GET): /logout/ Method Not Allowed: /logout/ [23/Dec/2024 20:26:07] "GET /logout/ HTTP/1.1" 405 0 below is url.py code from django.contrib.auth import views as auth_views urlpatterns = [ path('admin/', admin.site.urls), path('',include('food.urls')), path('register/',user_views.register, name='register'), #path('logout/',user_views.logout, name='logout'), path('login/',auth_views.LoginView.as_view(template_name='user/login.html'), name='login'), path('logout/',auth_views.LogoutView.as_view(template_name='user/logout.html'), name='logout') ] below is logout.html file code <h1>You have been logged out</h1> Please suggest
Prasanna
Hi, show LogoutView code
only that I m using