Doragonsureiyā
What is one to one relationship
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Lalit
Ty
cj
Is it good for beginners?
no, you should have at least basic knowledge of Python and Django
Cloud
Thanks
cj
Thanks
if you want beginner tutorial from those authors, buy the django crash course https://www.feldroy.com/products/django-crash-course
cj
or follow those other free three tutorials 👇👇👇
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Aman
How to Store and fetch image from MySQL data base in django
Phillip
Anyone worked with geonode?
Doragonsureiyā
Anyone worked with geonode?
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 60k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Phillip
How do I get started with geosites using geonode?
Doragonsureiyā
How do I get started with geosites using geonode?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Doragonsureiyā
How do I get started with geosites using geonode?
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 60k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
raven
How to Store and fetch image from MySQL data base in django
form my knowledge In Django we don't store image as blob on db but rather we store it on a media file server . You can check out about how to setup media files in django
Anonymous
can anybody help me Running setup.py install for uWSGI ... error
Anonymous
ERROR: Command errored out with exit status 1:
Anshirk
Check on stackoverflow
Anonymous
Hello
Anonymous
I need help creating models for student, subjects and scores( tests and exam)
V
I want to develop android app with real time chat option using django channels. How should i proceed. What should be my workflow. I know django and i have also learnt django-channel. Please help
V
No. I am not able to connect the dots. Can i PM you?
OnlyGod
Wanted to ask anyone... how I can customized widgets in django forms easily
Emmanuel Octavio
Wanted to ask anyone... how I can customized widgets in django forms easily
This work for me # Django from django import template register = template.Library() @register.inclusion_tag('generals/input_form.html', takes_context=True) def input_form(context, field, col=8, input_type='text'): value = field.value() or '' if field.errors and context['request'].method == 'POST': classes = 'is-invalid' elif not field.errors and context['request'].method == 'POST': classes = 'is-valid' else: classes = '' return { 'field': field, 'col': col, 'value': value, 'classes': classes, 'type': input_type, 'required': field.field.required }
Emmanuel Octavio
Okay thanks, would check it out
Ok https://docs.djangoproject.com/en/3.0/howto/custom-template-tags/#inclusion-tags generals/input_form.html <div class="form-group col-md-{{ col }}"> <label for="{{ field.id_for_label }}">{{ field.label }}</label> <input name="{{ field.name }}" type="{{ input_type }}" class="form-control {{ classes }}" id="{{ field.id_for_label }}" {% if field.field.required %} required {% endif %} value="{{ value }}" placeholder="{{ field.placeholder }}"> {% if field.errors.0 %} <div class="invalid-feedback"> {{ field.errors.0 }} </div> {% endif %} </div>
Emmanuel Octavio
am a bit confused, how to used it
You can use like a template tag {% load html_elements %} <div class="form-row"> {% input_form form.zip_code %} </div>
OnlyGod
okay let me try that
Sergey
Trying to run migrations, command said nothing to migrate but in post-migrate handler got an error. Stacktrace shows only files from Django souce. How can I find a file with an error?
Emmanuel Octavio
okay let me try that
Yes, html_elements is the file name where you have your custom tags :) example: /code/app/templatetags/html_elements.py
OnlyGod
Emmanuel Octavio
OnlyGod
I dont know. I have never downloaded a template :/
okay, well thanks again, would get back to you , after trying it out
ps
How to make over the admin panel with attractive dashboard, anyone??
raven
Anyone?
first try to implement group chat after that there are already few implemented private chat django channel repo , view there code you'll understand how to design such socket application s.
Aneesh
Anyone know how to reverse the inlines Ie in tubular inline
Anonymous
How to make over the admin panel with attractive dashboard, anyone??
There are html css templates in admin app, try rewriting those as per what you want. Just make sure you don't remove any functionality that already exists in those templates.
A
#NeedHelp How to fill a django model form little bit in frontend and a bit in backend? - Stack Overflow https://stackoverflow.com/questions/61731988/how-to-fill-a-django-model-form-little-bit-in-frontend-and-a-bit-in-backend
ps
So where to add new html templates
Anonymous
All you need to do is understand how admin's templates work and how to overwrite them.
ps
Any videos or documentation
Abhishek
how to handle SelectMultipleField() in post request?
Doragonsureiyā
Nice video! Thanks
You're welcome! 😊
Sweetie
I have an app called accounts Which has a model Account I am doing right using this url parrent: /accounts/account/ /accounts/account/<pk:int>/update /accounts/account/<pk:int>/delete
Lord Voldemort
Guys any idea how to minify html CSS and JavaScript in django except using filter spaceless for html tags
Anonymous
Plz tell me good book or site and video for Django
Anonymous
Anyone can help
Doragonsureiyā
Plz tell me good book or site and video for Django
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Loki
I am getting a wrong path whenever i upload image path
Dhruva
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal204", "gdal203", "gdal202", "gdal201", "gdal20"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your setting s.
Dhruva
gdal is already installed
Dhruva
still persisting this error
Dhruva
when trying to install cities
Peet
Good afternoon team, I am creating an API for a service app and I am stuck on a logic. I have a service that requires a one to many relationship, which means nesting the serializer. At the same time, I have to calculate the total if a user picks a service. Additionally, if the user picks a service plus extra service( data in the nested serializer...), the total is calculated. I am stuck on how to create this and calculations for the two models in one. Any help will be appreciated. Below is my gist with models and serializers and output https://gist.github.com/pmburu/b77e86dd01183aec887dfc2aa8ed019a
Rajesh
Where can i start django?
Rajesh
Any reading site or material availlable?
Ishan
Where can i start django?
django official site has really good example app for starting
Nat
How can I use restframwork result(json response) on the front-end
Gil
long term better like @Chair_dad says. Files to system with control of access and indexes I have not tested, but seems ok and updated! https://github.com/victor-o-silva/db_file_storage
Doragonsureiyā
Where can i start django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
__init__
is possible build microservice using Django and DRF?
Sumit
How to test get_success_url in ClassBasedView for Django? https://stackoverflow.com/q/61745172/10926539
Roman
Guys I am getting weird error. I used in model choice field, but still I can create the fields out of choice like what?