Manish
Every time when I start new project is it necessary to create django admin page??
Manish
Ok thanks
Manish
Suppose I want to create Sign Up and Login Form for website user. Should I have to create django admin ?
Manish
Admin has all permission to access details created in admin page
Muflone
Suppose I want to create Sign Up and Login Form for website user. Should I have to create django admin ?
you don't need at all django admin, if you don't want it if your users have to login then you need to create a login page if your users need to signup you have to create a signup page (if you don't want to fill the database by hand)
Muflone
django admin is an unrestricted tool, every user could do severe damages if you don't customize it
Onur
What about customising the admin for security concerns. Is it necessary?
Manish
But if I want there information to be stored in the Sqlite3 then is it necessary to create admin page?
Muflone
What about customising the admin for security concerns. Is it necessary?
if it's enough for you and for your users, it could be a way
Onur
Anonymous
What do you want to do? I can help a little bit
Multiple page project on django+react(intellectual teacher assistant)
Muflone
Is there any example or guide how to customise for security, thanks
https://books.agiliq.com/projects/django-admin-cookbook/en/latest/
Manish
Thanks @il_muflone 😀
Muflone
No its not necessary. I will be admin only
if you're the only user in the project, django admin would be useful to you
Shihasz
Nothing wrong with these codes. Problem may be in templates
Muflone
Django Admin could be customized but not too much heavily. It could be a way for your users but needs a lot of work. In some cases would be simpler to create a new admin page for your end users (and keep django admin for your advanced jobs)
Shihasz
!paste Share those HTML pages.. Use any pasting service
Doragonsureiyā
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
Shihasz
Is there a path named base?
Shihasz
Is this ur base.html file
Shihasz
You are extending base.html.. But didn't include block tags in base.html
Shihasz
You have to declare blocks first. Only then u can override
Opeyemi
Good day guys, I am working on a feature on an api using django-rest-framework where people who have skills can showcase their works or projects they have worked on. therefore i have a model named Projects that has one tricky field named assets, this assets field is supposed to hold multiple images, videos or audio. This means that when a user is creating a project they can upload multiple files per project. class Projects(models.Model): title = models.CharField(max_length=50) description = models.TextField(null=True) user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.DO_NOTHING, related_name="Showcases") assets = models.TextField(null=True) created_on = models.DateTimeField(auto_now_add=True) updated_on = models.DateTimeField(auto_now=True) The problem for me is that i have no idea how to handle the assets field. I know it shouldnt be an image field as it is receiving multiple images, videos or audio. I also know it shouldn't be TextField. 1) Please how do i handle this field? 2) I also have plans for the assets (i.e. the images, videos and audio) to be saved on amazon and not in the sql database. Given this conondrum, What is the best way to go about this in the project?
Anonymous
hey guys i keep getting the error secret key is nont configured in django saleor
Yash
Multiple page project on django+react(intellectual teacher assistant)
React router for multiple pages will do it for you. If you want data transfer between react and django then you can go with django rest framework.
Kanchan
Any know how to work with apimedic api in django
Doragonsureiyā
Any know how to work with apimedic api in django
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 56k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
blank_
Please any tell me how to pass context data from one view to another view function
Anonymous
Just import it and call function_name(request, context) in your current view, and better give a default value null
Mohamed
I am trying to create a billing app This is what I am trying to achieve Image: https://ibb.co/fFMvqtw But when I press create row, the call is going as post to view and the data is getting stored. Can you tell what I am doing wrong here or if you any better approach pls tell me. Code:https://www.ppaste.org/HF8KjVaYc
Anonymous
Each row will have only one media!? If so... Just textfield with the path, if each row, will handle multiple medias, then I suggest the array, but the same, in textfield, u must handle the array in your code, or maybe use th jsonfield
Anonymous
Hey guys i want to learn django from basic level ! Suggest or guide me regarding this Thankyou
Doragonsureiyā
Hey guys i want to learn django from basic level ! Suggest or guide me regarding this Thankyou
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Roman
Hi guys quick quetsions please
Roman
I am using ngix and gunicorn as reverse proxy for django app
Roman
How do I restart the django server after making changes?
Roman
or I need just to make changes in the files and it will work ?
Mohit
or I need just to make changes in the files and it will work ?
Sudo service nginx restart, sudo service gunicorn restart
Roman
Thanks mate
Roman
So cool
Salohiddin Yoqubov
How to import self model? Not working `class Section(models.Model): parentId = models.ForeignKey('self', on_delete=models.CASCADE)`
Salohiddin Yoqubov
why do you use self?
I need to make this category Foregn key
Roman
But it's not possible
Roman
You are trying to make as foreign key the same class what you are in
Roman
Like
Roman
I am not sure it's going to work but you should put just Section
Roman
Name of the class
Salohiddin Yoqubov
Name of the class
When I put a section name, it says no such class exists
Mohamed
How can I get data from HTML table and send to Django? I will parse that using Python
Salohiddin Yoqubov
Python (parent category) —Documentation (child) —Functions(child) —Admin(child)
Salohiddin Yoqubov
Anonymous
How can this be done? Using a single model?
Make a many to many model for your Categories
Mohamed
By views
How can I send from template to views? Its not a form , its just a HTML table
Salohiddin Yoqubov
Make a many to many model for your Categories
You have simple or stackoverflow url?
Mohamed
I know I am being noob, can you give me some tutorial
Anonymous
I know I am being noob, can you give me some tutorial
You can google “send data from django template to view” Or send data to django with ajax
Mirco
How can I send from template to views? Its not a form , its just a HTML table
Why don't you send just data instead of HTML and then you build the HTML into template by using context ?
Anonymous
Hey guys ,am new to saleor,I just follow the docs to install saleor but when ever I run the server it takes me to graphql play group only, what should I do Please help guys
Anonymous
You guys are selfish here Am out
Mirco
I've always ran saleor via docker by following documentation without any issues
gamer_boy
hi guys, i creating multichoice quiz app so i write this view which redirect to another question if i choose correct answer or else redirect to me on same question but this is not working properly this always redirect to me back to the results.here is my code
gamer_boy
plz help
gamer_boy
https://pastebin.com/wb6hENi1
WhiteDevil
Hi all - I have developed a full functional python script for some operations related to configuration management. Now I will need build a Web-UI independent of the script.