cj
in my local machine,django-environ exist
clearly we are not in the same planet... 🤷‍♂️
Macurrent
clearly we are not in the same planet... 🤷‍♂️
In my requirements.text file in my machine thats what i ment
cj
in my local machine,django-environ exist
one last try to make the djangock editor I sent to you up and running: 1. create a new virtual environment 2. inside that new virtual environment, install all the dependencies from the requirements.txt file 3. set a environment variable DJANGO_SECRET_KEY 4. move to djangock folder and run ./manage.py migrate and ./manage.py runserver 5. open the browser and check the project functionality
Eduardo
Hi guys, do you know about a free vps for a little personal project?
Anonymous
Why dose django come with bootstrap
🏳️‍🌈Robby [ Private Message = Spam]
Why dose django come with bootstrap
What? Because it's easy for people to use probably
🏳️‍🌈Robby [ Private Message = Spam]
🏳️‍🌈Robby [ Private Message = Spam]
What an amazing non answer
Thats probably the answer. Deal with it. The reason is people are too incompetent to know how to design a grid system themselves. You'd have to ask whoever added it why they did.
Anonymous
Thats probably the answer. Deal with it. The reason is people are too incompetent to know how to design a grid system themselves. You'd have to ask whoever added it why they did.
So what that's irrelevant, cuz people can simply install bootstrap i don't need bootstrap classes inside my templates your so your answer don't count
Anonymous
Wait, where are you seeing bootstrap?
Inside my templates why 😕
🏳️‍🌈Robby [ Private Message = Spam]
Inside my templates why 😕
Where did you get the code?
🏳️‍🌈Robby [ Private Message = Spam]
I wrote it
you're making no sense — django doesn't force you to use bootstrap
Anonymous
I don't have bootstrap in my project
Anonymous
you're making no sense — django doesn't force you to use bootstrap
Django admin uses bootstrap but that doesn't mean it should appear inside my templates
🏳️‍🌈Robby [ Private Message = Spam]
Django admin uses bootstrap but that doesn't mean it should appear inside my templates
Then dont use that and make your own admin panel...problem solved.
Anonymous
what's the point of using django then
🏳️‍🌈Robby [ Private Message = Spam]
what's the point of using django then
https://djangopackages.org/grids/g/admin-styling/
🏳️‍🌈Robby [ Private Message = Spam]
Googling would have yielded this :)
Eduardo
Heroku
Thanks bro!
Sagar
I have a stored procedure in mysql, it has 7 in params and 1 out param as "data inserted successfully". Now if i want to call that procedure from django, should i pass 7 params or 8. Bcs the error is expected 8, got 7. But thats an out param.
Sagar
Views.py https://pastebin.com/S5uweufJ
Sagar
the procedure https://pastebin.com/CFmsJzfw
entropy
Hi everyone, how large is the data for django's order_by slowliness to be noticeable? What are the alternatives that can be used? Raw sql query? TIA
entropy
as slow as raw sql query coz that django generate
Do you mean that they are just the same?
inchidi
Do you mean that they are just the same?
try print it. sample: print(YourModel.objects.all().order_by('your_field').query)
Shubham
I need a suggetion
Shubham
in case of 3 login roles with admin, teacher and student , should admin be a superadmin itself or apart from 3 login there should be another seperate admin who should able to login in django admin panel , in case of multi user /role authentication
Shubham
I will be requiring the 3 admin panel in react/angular in future , now only I am creating APIS for it
entropy
yes.
Shubham
django admin is for managing backed activity
Shubham
okay
Shubham
my project admin is completly seperate from superadmiin/django admin, right?
Shubham
@melmarquez
entropy
hmm. usually, django admin is for admin and superadmin.
Shubham
okay
Manish
After restart uwsgi list order is changed
Manish
list=[['xyz', 5,100,200],......] In template inside for loop it's order changed when restart uwsgi 200 xyz 5 100
Manish
@robbyoconnor
Mirco
hmm. usually, django admin is for admin and superadmin.
It depends, you can make different admin pages for your team area and choose what every team can do/view
entropy
i agree
Artyom
Hello guys! I have a little question. I have to get 'name' field (it is field of model X) in model Y using foreign key , linked with model X. How I can to realize it?
Artyom
@pyflare I have to display in API. I Just want to display 'The_field': 'value_of_name' instead 'The_field': 3
klimi
Artyom
class FcaUseSerializer(serializers.ModelSerializer): class Meta: model = FcaUse fields = ('id_fca','fell_form','fell_type','main_type','sortiment','ed_izm','vol_drew',\ 'fca_res','vol_res', 'kind_id_id')
Amaro
Anyone
Not the answer you waiting for, but... return render(request, 'dummy.html', {'rows': rows}) cursor.close() connection.close() Cursor and connection will never close.
Amaro
Just close everything BEFORE return. Code after return will never run.
Amaro
Okay
And about your question, check this: https://stackoverflow.com/questions/27055892/cant-retrieve-out-parameters-from-stored-procedures-mysql
Mirco
foreign key it is 'id_fca'
ok so in the fields paramter you can use "lookup fields like" to access the fields of the class you're related with so for example you have Car and Wheels related with a FK , to access to Wheel field from Car you can use this syntax : wheel__pk in the Car serializer
Sagar
And about your question, check this: https://stackoverflow.com/questions/27055892/cant-retrieve-out-parameters-from-stored-procedures-mysql
Ok. The problem is there's a parameter as @message in that procedure and not sure how to pass it in django
Sagar
Thanks btw
NR
Any good example to run django with cpanel
Mirco
Vikash
😄
Anonymous
edu mails are very helpful for getting github pro account for free
Mirco
😄
wrong place instead of shell ? 😊
Anonymous
Recommended Use pycharm
Anonymous
as github providing pro account for free to the students
Anonymous
it is a good ide
Anonymous
django + django rest framework + we_make_django so cool