I want create simple website on this website created post only superuser(admin) one person. Other users can only read posts and leave comments. They do not need to register, only their comments and reading of the post are saved and I need to do it using django rest framework. how to do it correctly thanks in advance for your reply.
I used command "python3 manage.py createsuperuser" to create superuser. My project is in the following order enter image description here
enter image description here
but i have this problem
enter image description here
please help me where i am doing wrong, actually how it should be done.
Related
My Problem is, I want to create a extra website on a phpBB forum to provide extra stuff and registration for meeting. No problem I know django and python, so this is no problem.
But I would be nice, if I could accept a session from a user or import the phpBB users so that they can login to my app.
I found django-phpBB, but I don't want to access the data. If I read correctly, my case is not the use case of django-phpBB.
Can anybody give me a good advice?
Does anyone has idea that how can get user details from AD using Django search.
I am able to get using simple Python script but not using Django.
In short I want to create a search box which will take user input and will give output from AD using Django.
Thanks in advance.
I'm a noob I know.
So I want to build a web app that allows the user to enter text. Then have the web server send an email based on the text with a message from another file.
What would be the optimal way to accomplish this? I am new to Django but have experience with Python. If someone could give me a basic bullet point way on how to do this I can google the rest. I just don't know where to start.
There is plenty of good guides online. The django documentation will take you step by step through making your first django app.
https://docs.djangoproject.com/en/1.9/intro/tutorial01/
Django has a sendmail library that you can use once you get your app started
https://docs.djangoproject.com/en/1.9/topics/email/
This guide is help you to go step by step
Tango with Django : http://www.tangowithdjango.com/book17/
Or
http://tutorial.djangogirls.org/en/index.html
as well you have to follow official documentation.because Tango with Django may cause version issues but Django girls tutorial seems updated.
Official : https://docs.djangoproject.com/en/1.9/intro/tutorial01/
While looking across the Django documentation, I came across the FormPreview.
The description says this:
Django comes with an optional “form preview” application that helps automate the following workflow:
“Display an HTML form, force a preview, then do something with the submission.”
What is meant by "force a preview"? What would you use this feature for an in application?
To force a preview means the users are forced to see the value they have inserted on the form input fields, before django actually saves it to the database.
One example is django comment system, which enforce the users to take a look at the comment they have written before django actually saves it to the database. You would see that the users are redirected to another page to take a look at their comment, and after that there is a submit button to actually save the comment.
I think they mean (I use django but I didn't know of this until now..) that you can let people write, for example in a textarea box like I'm doing right now. After the user submits it the system would preview it to the user and give him the chance to read and edit what he submitted, before it being submitted again all the way to the database.
I have a question regarding editing/saving data in database using Django.
I have template that show data from database. And after each record i have link that link you to edit page.
But now is the question how to edit data in db without using admin panel?
I run thought tutorial in djangobook but i didn't see how to achieve this without using the shell
Thanks in advice!
Have a look at the "Working with forms" section in the Django documentation.
You can use Django authenticaion system to create users and giving them permissions to modify the data.