Javi
anytime
Someone
Someone
inchidi
if you are pretty sure the field can not empty or null, then hidden input is good choice anyway
inchidi
but if the hidden input static, never change and always have same value then better set default value to that field
Django Bot
>> Links
- Using setup.py in Your (Django) Project | Lincoln Loop
Javi
You should never trust the user input. Having a hidden field doesn't mean that you cannot change it :P
Javi
If you don't want the use to change it, exclude it
Anonymous
Django Bot
>> Links
- Built-in template tags and filters | Django documentation | Django
Omer
Great, I will do it
Omer
Next week I'll have enough time to start doing it
Aluma
Wow. A lot of work to do.If someone here is Hebrew speaker of know a djangonaut that speaks Hebrew it would help us a lot. ( Omer @MeitarR ).
Aluma
or* know
Meitar
Django Bot
>> Links
- Rails Quick Start for Djangonauts
- Let's talk about usernames
- How a request becomes a response: Diving deeper into WSGI – Django Deconstr
- Usernames
Ian
personal like I update a field in the model when deleting the model, remembering that I am using sofdelete?
Ian
wanted to instantiate a charfield field when deleting
Ian
def delete(self):
self.date_delete = timezone.now()
self.deleted_at = True
self.save()
Django Bot
>> Links
- Mocking files and file storage for unit testing Django models - Joe Ray
Django Bot
>> Links
- Quick install guide | Django documentation | Django
- Writing your first patch for Django | Django documentation | Django
- How to install Django | Django documentation | Django
- Deploy Django on Apache with Virtualenv and mod_wsgi
- Django Taggit
- How a request becomes a response: Diving deeper into WSGI – Django Deconstr
Django Bot
>> Links
- How to Extend Django User Model
Django Bot
>> Links
- Let’s talk about usernames | Hacker News
- Let's talk about usernames
- Let's talk about usernames
- How to Deploy a Django Application to Digital Ocean
- Putting your Django website on offline / maintenance mode | The Programming
- Oscar - Domain-driven e-commerce for Django
Django Bot
>> Links
- DjangoTricks: Django Administration: Inlines for Inlines
Django Bot
>> Jobs
- Full Stack Engineer
Django Bot
>> Jobs
- Freelance Django Developer Remote in US
Anonymous
I know Google App Engine and Python, and I want to be expert in Django, Please suggest suitable tutorial.
Django Bot
>> Links
- Standalone Django scripts
r0b0t
Django Bot
>> Links
- Disabling Error Emails in Django | Lincoln Loop
Django Bot
>> Links
- Using setup.py in Your (Django) Project | Lincoln Loop
- "Data internationalization in Django" by Raphael Michel - YouTube
- Django Logging, The Right Way | Lincoln Loop
Django Bot
>> Links
- Let’s talk about usernames
Django Bot
>> Blogs
- Add Value To Your Django Project With An API
Leo
Hey guys
Leo
I have an issue i posted to stackoverflow a few minutes ago, but maybe someone in here can help me better:
in my Django (2.0.2) running in Python 3.6.3 I've created some Models as usual. To be able to work with the admin panel in the user's language, I've set the model's and model field's verbose_names to _('context','verbose_name') where _ aliases to pgettext_lazy.
When running "makemessages -l de" it creates the django.po file as expected, containing all my strings.
Different from my expectations, the blocks look like
#: app/models.py:123
msgid "context"
msgstr ""
instead of
#: app/models.py:123
msgctxt "context"
msgid "verbose_name"
msgst ""
What could I possibly do wrong?
All strings translated with gettext_lazy work fine.
Leo
It does work if i don’t alias it, but thats somewhat weird
Django Bot
>> Links
- python - How does the order of mixins affect the derived class? - Stack Ove
𝒟𝑜𝓃𝒬𝓊𝒾𝓍𝑜𝓉𝑒
how can i determine if i need to make a new app for the project?
I have a User and Post models, there's other models related to those two models, and i don't know when I have to split them into apps
Django Bot
>> Blogs
- Django Single Sign On(SSO) to multiple applications
Leo
That’s up to yourself. If these other models are somewhat working on their own but need the user model, it maybe would be better to have them in a own app. If they fully integrate with User and Post, eg. a comment model, it would be better to have them in the same app
Leo
But theoretically you could do whatever you want, the only difference in runtime is a slightly longer load time because of the imports you need to make and the separation in the admin panel, if you split apps
Anonymous
well an app ideally should be independent
Anonymous
so even tho you can separate them. But, it won't be a good practice
Leo
If I need to extend the user at all
𝒟𝑜𝓃𝒬𝓊𝒾𝓍𝑜𝓉𝑒
Django Bot
>> Jobs
- TECHLEAD PHP/Angular
>> Blogs
- Django development with Docker —A completed development cycle
- Continuous Integration and Deployment with Drone, Docker, Django, Gunicorn
- How to Hide And Auto-populate Title Field of a Page in Wagtail CMS
>> Links
- Dockerizing Django for Development - Fernando Alves
Django Bot
>> Links
- Kubernetes, Local to Production with Django: 1 - Introduction
- Local Django on Kubernetes with Minikube – Google Cloud Platform — Communit
- Moving a large and old codebase to Python3 – Anders Hovmöller – Medium
- Django development environment with Docker — A step by step guide
Anonymous
Hello. Does anyone have an idea of how to create hierarchical tags in django?
Anonymous
Maybe, look it's docs
inchidi
what do you mean by hierarchical tags btw?
inchidi
Anonymous
Anonymous
Tags returning tags depending on args
inchidi
it is template tags?
Anonymous
Yes
inchidi
but why 🤔
Leo
Or do we talk about eg blogpost tags?
inchidi
inchidi
or already solve it by yourself?
Leo
Nope, just let go of the alias and use it with its original name
inchidi
Django Bot
>> Links
- django - Getting error 502 when processing an excel file with many rows - S
- Moving a large and old codebase to Python3 – Anders Hovmöller – Medium
- Python & Async Simplified - Aeracode
Iman
Hi
I'm want to run a webapp with maximum users of 1000 simultaneously connecting to my server
I was digging into some tutorials for the best way deploying server and found some suggestions like Nginx + Gunicorn or nginx + uwsgi of apache + uwsgi
As you know uwsgi is more configurable so i chose it
the question is why i even need nginx in front of uwsgi when uwsgi it self can act as my webserver !?
thanks in advance for your answers
黒の戦士
Hi everyone
Anonymous
Django Bot
>> Links
- django - How to add base64 image data as attachment? - Stack Overflow
- Handling Images As Base64 Strings With Django REST Framework - Matthew Daly
- Experienced Python/Django Engineer - Full-Time
Iman
Someone
Hi,
I have 2 models like
class A(models.model):
name = models.CharField
class B(models.model):
name = models.ForeignKey
Is there anyway that I can attain the following pattern :
when someone saved data on model A with forms, model B should auto populate with the data in model A
Django Bot
>> Links
- Django development with Docker —A completed development cycle
- Django development with Docker — A step by step guide
inchidi
Someone
Someone
Iman
Use post_save signal
Django Bot
>> Blogs
- On Django's longevity
>> Links
- Welcome to Hacker101!
Someone