Dhruv
can u explain further
Dhruv
when debug was true it was running fine but not ive set debug and template_debug off
Dhruv
now its giving me error
Mirco
Debug set to False means that you have to prepare your Django code for production purposes For example you need a way to serve STATICS / MEDIA like a web server for doing it etc etc
Mirco
Check the Deployment topic inside the official docs
Dhruv
yess ive done that tooo
Dhruv
my static files were serving properly but
Mirco
what do logs say ? it's impossible to help u without knowing the reason why of the 500
Anonymous
Can anyone tell me where the security key in django is used, i just depoyled to heroku and it did not require a security key
sarth
when i am importing the csv, in the database, i am not getting complete data in database from csv.please help. i am using django import export
sinyor
hello guys, I've written an API with DRF and I want to call special values on View. For example I have a JSON View like this: { "id": 22, "userProfile": 6, "project": 2 }, { "id": 23, "userProfile": 1, "project": 1 }, { "id": 25, "userProfile": 6, "project": 3 } and when i call like ../api/?userProfile=6, i want to see all value that userProfile=6 like this: { "id": 22, "userProfile": 6, "project": 2 }, { "id": 25, "userProfile": 6, "project": 3 } how can i do that? Is there anyone help me?
Rohit
Anyone have Django for beginners book
artur
aitpash
Anonymous
Anyone have Django for beginners book
Django documentation. That is enough to learn python and clearing doubts.
Anonymous
It is used for making hashes
So there like nothing i need to do right?
akash
Can I post stackoverflow link here for help
akash
Django related doubts
akash
In django-allauth library, I want to put lots more content to the login and signup html files. I installed the package using pipenv so the files from this package are not visible in my project folder. How do I modify logins and signup pages.
akash
Sorry, might sound noob, what did you mean by installing seperately.
akash
Currently both these links are pulled from allauth templates and functional.
Suprit
Is there any alternative for @app.before_first_request from flask in Django
Darta
i need auto slug i want slug use title field and make slug without enter anything and found this code but doesn't work for me and slug field is empty after save what's problem? https://pastebin.com/gCVqFDe7
Dharmu
Crontab not working in windows Someone have solution for this
Ted
Hi so I'd like to create a feature for my Admin, staff and students such that they can see and only do certain functions... How or where could I search for that
Anonymous
hii dears I need to help to create sub menu like this
Anonymous
menu menu1 sub menu1 sub menu2
Anonymous
My model.py class Menu(models.Model): name=models.CharField(max_length=555) slug = models.SlugField(null=True, blank=True) def str(self): return self.name class Submenu(models.Model): name=models.CharField(max_length=100) menu_id = models.ForeignKey(Menu, on_delete=models.CASCADE, related_name="submenus") slug = models.SlugField(null=True, blank=True) def str(self): return self.name my views.py def index(request): menu=menu_all() submenus = submenus.all() all_news=Posts.objects.all().order_by('-id') data={'salom':all_news,'menu':menu,'s_menu':submenus} return render(request,'ac/index.html',data) my main.html page <ul class="clear"> {% for menus in menu %} <li> <a href="{% url 'all' menus.slug %}"> {{ menus.name }} </a> <ul> {% for submenus in s_menu %} <li><a href="pages/gallery.html">{{ submenus.name }}|{{ submenus.menu_id }}</a></li> {% endfor %} </ul> </li> {% endfor %} </ul>
Anonymous
who can help to me?
Gideon_User
Hi everyone, Can anyone please tell me how would I learn Django ORM?
Anonymous
Hii I am making an application using django and I am using redis but unable to install it in windows though I know that redis is not officially supported on windows but we can do that using Microsoft archive release I install that on my system but when I am trying to run the redis server it shows an error
Anonymous
Anyone know about redis
Anonymous
Suggest me or help me out
𝕯aniel
Type on google redis for windows first 5 link u can found it
Anonymous
Please read django doc authentication section to understand this subject
Sometimes i get confused, there are several django docs out there and each one of them seemingly has a different approach of doing things, i get troubled which one to stick with specifically
Anonymous
Official Django docs is one and only one
But it's not always a good startup for beginners
Mirco
But it's not always a good startup for beginners
It is, especially the tutorials And it's always the best resources for more experienced ones too
Anonymous
I am also learning python lol, just to make django not be that complicated for me
Anonymous
🤙
Can you make a blog project in django without looking at the django docs??
Anonymous
Anonymous
Now yes, when I started absolutely not
Am trying to do the same project repetative times just to master the syntax, I don't know if that is also how you did yours??
Anonymous
Am trying to do the same project repetative times just to master the syntax, I don't know if that is also how you did yours??
Like am trying not to be that guy who copy paste codes from the internet, though some are very difficult to master
Mirco
Anonymous
hii dears I need to help to create drop down menu like this menu menu1 sub menu1 sub menu2
Doragonsureiyā
hii dears I need to help to create drop down menu like this menu menu1 sub menu1 sub menu2
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Crack
Can we use django class based views with ajax
Anonymous
Can we use django class based views with ajax
No, for get ajax requests you should use function base views
Anonymous
So its not possible
It's possible but it's not django standard
Anonymous
hello dear sofia do you want to show your category in templates ?
Anonymous
please come in PV and explain that for me
Anonymous
class Post(models.Model): text=models.TextField() title=models.CharField(max_length=200) author=models.ForeignKey( 'auth.User', on_delete=models.CASCADE ) I have been searching for these syntax in official django docs ie the 'auth.User' but it's not there. I don't understand why they have used it here though
Anonymous
Official Django docs is one and only one
If the official django docs is the one and only, Then where did these resource am using get to know how to use the auth.User? And this was what i was talking about, every resource has it's way of doing things and that is very confusing to me
Njain
How can i create an API in Django
shashikant
How can i create an API in Django
Google the same question
odin
How can i create an API in Django
Can you be more precise
Njain
Actually i want a ship container tracking API and i have no idea how i do it
Eu
Anyone can give me tips on how to implement the ‘create group’ option in django? I already set up django channels in my app
web
How can i create an API in Django
DRF django rest framework
Anonymous
How can i create an API in Django
You Can Use Django Rest Freamwork and Django Ninja
Dev
Shopping website Django Project Send me
LIBIN
2021-05-13T12:56:21.992340Z this is coming from the django backend by the datetime field How can I convert it into normal form by making extra attributes in datetimefield in django.
Anonymous
Shopping website Django Project Send me
https://github.com/nikeshvarma/EcommerceWebsite