Nushh
Seems like the server is stuck there
Ivan
Help me guys I have created my website but now I have failed to work on the database someone please help me
Ivan
No one can help you until you explain your difficulties.
My biggest difficulty is creating the databas am done working on everything
Rose
My biggest difficulty is creating the databas am done working on everything
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Ivan
I need someone to tell me how to do that
Ivan
Okay then let me try and read that thanks
Ivan
Okay I have created a website using the Django framework am done with all the .models the views the URLs and the user interface but the difficulty am facing is that I want to know how I can access the database for all these online
Rose
Okay I have created a website using the Django framework am done with all the .models the views the URLs and the user interface but the difficulty am facing is that I want to know how I can access the database for all these online
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase.
Saif
Hi. I am new to Django. I have a query can you guys help me!
Rose
Hi. I am new to Django. I have a query can you guys help me!
No one can help you until you explain your difficulties.
Saif
I wanna create a registration and login form without using the UserCreation form. I have a model named Registration. Where I have the fields name - first name, last_name, email, pass1, pass2 , dob, and gender. The registration field works fine when I am registering an user. But I facing the problem when I am trying to login an User via Email and Password. I am not using CustomCreationForm or anything. I just created my form using Html and CSS and have a model name Registration with the above mentioned field.
Saif
Is there any option to create own customized forms in Django without using the UserCreationForm. As like I am creating a model named Registration and I wanna do all the stuffs with that
Adisa
please how do i use tailwindcss with django?
Arsham
I want to create a weblog with Django, I have been created a Post page. The user will Enter the title, select the author and type the body. But when the user click the "Post" button, the blog won't save. Anyone knows what is my problem?
wlms
Could anyone help please?
Do you want those translated to Russia or?
Drago
Do you want those translated to Russia or?
From English to russian I didn't manage to find how to set these texts to my custom ones
Iman
What is your roadmap to master Django and learn all the topics If you have your own roadmap, send it to me
Arsham
Did you set the form action url?
a just give the button a href, and it just take me to the home page. But the blog does not save
Iman
I'm learning from YouTube channel called "codemy.com"
No, I don't mean educational resources I mean a roadmap for learning advanced Django topics
Total
i have my forms.py file
So did you call the form class in side you html file with a method Post and action url?
Arsham
I will send the code
Arsham
"""{% extends 'base.html' %} {% block title %}Create a New Blog Post!{% endblock %} {% block content %} <h1>Add Blog Post.....</h1> <br/><br/> <from method="POST"> {% csrf_token %} {{ form.as_p }} <a type="submit" class="btn btn-secondary">Post</a> </div> {% endblock %} """
Arsham
This is my add_post.html file
Iman
Documentation is your best tool I guess!
Well, I want to go ahead with the documentation, I am looking for a step-by-step roadmap for advanced topics For django
Iman
What do you mean advanced?
I mean advanced topics Like Middleware,signals or more.....
Arsham
Try changing the a tag to an input
I'm not good at html, can you give me the code?
Total
I'm not good at html, can you give me the code?
Remove a tag in the form and add <input type="submit" value="Post" > and also make sure to close the form tag
Morteza
I mean advanced topics Like Middleware,signals or more.....
First learn the basics, then search about them one by one.
Total
I mean advanced topics Like Middleware,signals or more.....
Look it up on YouTube and ask specific concepts you don't understand here.
Total
I did, it just refresh the page and make all of the forms blank
First make sure your data is added to your database and check the view function or class that is responsible for this form logic in your views file.
Total
I review it more then 10 times, I'm stuck, I don't know what is my problem
Add action = "{% url 'add your url which is responsible for this form that will lead to the view here' %} " in the form and make sure to replace using your own url.
Morteza
I review it more then 10 times, I'm stuck, I don't know what is my problem
Share your code, views.py, forms.py, models.py Use a posting service to share the code.
Morteza
any websites?
http://dpaste.org
Arsham
http://dpaste.org
https://dpaste.org/Wvrdo
Arsham
https://dpaste.org/Wvrdo
This is my views.py file
Arsham
https://dpaste.org/cb94C My froms.py file
Arsham
https://dpaste.org/XN0KT and this is my add_post.html file
Arsham
https://dpaste.org/PkDWV and models.py file
Total
Fix your form tag and close it, it says <from> not <form>
Total
And also add success url to your views that would redirect you to a page you want to if the data is submitted successfully.
Morteza
https://dpaste.org/XN0KT and this is my add_post.html file
You missed a closing form tag here, but everything looks fine. as @totally58 said, check the admin panel, see if there any post has been created or not.
Arsham
Thank you a lot
Rose
User govind has 1/3 warnings; be careful! Reason: crossposting
Abhinand
Could not connect to "ws://127.0.0.1:8000/ws/chat/" anyone know why iam getting this error while try to connect Django consumer with websocket?
Rakesh
Check the django settings.py in host address
Hovhannes
hi there! I have List of unique locations presented in the attached csv file "uszips.csv".* The list must be uploaded to Postgres databases when the application starts. how i can do it at django?using signals ?
AZ
Hello how are you guys, I want to asked you about something in Django i used Django only to handle the backend and i used vuejs3 in frontend i used separate servers for each project and the Django project has url cdn.example.com the problem here is if the user add this url in direct web browser he can access the server side how i make sure to prevent this access i want to allow requests that come to server only from the frontend url and server side if the request doesn’t come from the frontend url i want from the server to ignore it
Mirco
My website is store website I can’t authenticate all of the requests
Yes but your APIs I hope they require always authentication And the ones that can be public are public and that's it Also because even if the user doesn't know the backend URL, it can be just discovered via browser tool So again, if your API are well protected, there's no issue
Mirco
I mean authentication + authorization Then it can be a token auth, a oauth ecc But if your APIs is protected by that, you don't have to do any other kind of block because direct access won't return any results
Mirco
It return get method
Without any results if the endpoint is protected
/\/\ @ # |) !
that is good course