Anonymous
Personal message me
Anonymous
Anyone interested to make a simple Django website
Will there be a payment involved?
Anonymous
Will there be a payment involved?
I mean, are you hiring?
Komang
Hi
Syed Jafer
What is Django cms ?
Syed Jafer
Is that anoyher framework
David
Its like a Joomla, but constructed with django.
Anonymous
Is that anoyher framework
It is not a framework perse..
Anonymous
It is content management system..
Anonymous
Django is a framework... Django CMS is already built CMS on django
Anonymous
No
Well, that's a no for me.. 😁
Komang
Uwsgi vs gunicorn which best for handling django project?
Django Bot
>> Links - A framework author's case against frameworks - Adrian Holovaty at dotJS 201 - Model field reference | Django documentation | Django - Working with data/databases in web frameworks (Symfony and Django)
Django Bot
>> Links - 0–100 in Django: Starting an app the right way – Hacker Noon
Komang
/stop @DjangoRSSbot
Lapanit ☃️
/stop @DjangoRSSbot
wow wow, easy there fella
Anonymous
/stop @DjangoRSSbot
You need admin privileges..
inchidi
/stop @DjangoRSSbot
actually its triggering the bot to post more news next time
Anonymous
You need admin privileges..
So you think any of us wouldn't have get rid of it had we had the privilege 😁😁 jk
inchidi
I just kidding my lord
help me fix the "check ongoing convo" algo tho. i think it start failing
Komang
help me fix the "check ongoing convo" algo tho. i think it start failing
I don't know about programing, i am only script kiddes, i am a little boy my lord
inchidi
Komang
inchidi
you are looking for something like that?
Iman
you are looking for something like that?
Well actually i got my answer
Iman
I have't seen function wrappers like that
Iman
I just used decorators
Iman
Thanks 👋🏻
inchidi
Iman
yeah me too, its so rare
Actually its useful when you want to wrap a function when you want to use it in another function! It'll be three layer nested function !
Django Bot
>> Links - Lessons learned from migrating to Python 3
N S
I have a field in User table as access level how do i check its value in djanho template
N S
Django template
Django Bot
>> Links - Saleor — an open source storefront written in Python and Django - Using Enum as Model Field Choice in Django – Hacker Noon - Setting up StackDriver logging for Django on GCP – Google Cloud Platform —  - Testing Django applications in 2018
Django Bot
>> Blogs - Authenticating via JWT using Django, Axios, and Vue >> Links - Authenticating via JWT using Django, Axios, and Vue - Django Tutorial Part 8: User authentication and permissions - Learn web dev - python - ModelForm with a reverse ManytoMany field - Stack Overflow - The best of Python: a collection of my favorite articles from 2017 and 2018 - Tutorial: Django User Registration and Authentication - Building a Django POST face-detection API using OpenCV and Haar Cascades - Django REST framework - Zulip
Thomas
Hi everyone :)
Thomas
Can somebody advice me...I have two models and one have a foreignkey of another and some fields that are the same as from parent model. Is possible if I fill one of that fields, value will replace a field value from parent model? But not save to DB just for render. I need it for admin and view. Thank you.
Anonymous
Put an example
Thomas
Ok :)
Thomas
https://dpaste.de/rpXf
Thomas
Is it possible to make it right in models?
Thomas
Put an example
Here it is...I try it in views.py but it works only there and I need it also for admin, validations, forms...because it is app for creating forms and mailing.
Thomas
If it this is possible somehow in models.py it would be great :)
Django Bot
>> Links - Web API performance: profiling Django REST framework - Django documentation | Django documentation | Django - djangosnippets: Allow configurable subdirectory django deployment - pydanny.com - “Drupalgeddon2” touches off arms race to mass-exploit powerful web servers - Testing Django with pytest: debugging a teardown failure
inchidi
do those "same fields" not always have same value?
inchidi
if yes, when will use those not equals values?
Thomas
do those "same fields" not always have same value?
Example: If field in child model is filled use this, if not use parent field.
inchidi
Example: If field in child model is filled use this, if not use parent field.
did you realize that child=ChildModel.objects.get(id=1) print(child.parentmodel.title) will work?
inchidi
I have do this in view or models?
actually everywhere you able to access your Models
Thomas
Yes this works. But I want to make it globally or I have to do this everywhere I need admin, view, validations, forms etc...
Thomas
If this could be possible inside model it would be great. If child field is filled you take this, if not use parent field with same ID (by foreignkey)...
inchidi
Yes this works. But I want to make it globally or I have to do this everywhere I need admin, view, validations, forms etc...
i need specific use case you need for validations and forms. but for admin consider read this answer
Thomas
i need specific use case you need for validations and forms. but for admin consider read this answer
Think of parent model like it is a form layout by which you can send a email. You create it once and use everywhere on page multiple times. But if you want on one page change TITLE for example you have to create new layout. But I need to create a custom layout that will be extended by that parent layout. I just change one TITLE field and this will be used as primary for this page.
Thomas
So the name of layout stay same I just change a title with custom title.
Anonymous
Hi guy's any one help me.. In Django, I have two models but these don't have any relationship . means City and vote are models these doesn't have relationship... But when we vote , vote model has to display with respect to City people. How can I do...
Thomas
You have to save somewhere an information about place.
Thomas
Can you show an example with dpaste.de ?
inchidi
Hi guy's any one help me.. In Django, I have two models but these don't have any relationship . means City and vote are models these doesn't have relationship... But when we vote , vote model has to display with respect to City people. How can I do...
why you not just make relationship between those models? even if you already make it work, its gonna failing if someone add city of Vote object that doesnt exists on City model
Anonymous
Thomas
https://dpaste.de/VpJs
Do you have some logic how you pair a Tool with Customer?
Thomas
What Customer looks like? Do you have there some field to save for example tool_id or something?
N S
How will the regular expression be for an input like this CS15-1102B
Liron
How will the regular expression be for an input like this CS15-1102B
I'm not sure what's your pattern, but I guess you want something along this: CS\d{2}-\d{4}[A-Z]?
Django Bot
>> Jobs - Web Developer - Full-stack Developer >> Links - GitHub - orsinium/django-bruteforce-protection: Bruteforce protection for D - orsinium/django-bruteforce-protection: Bruteforce protection for Django pro
Django Bot
>> Links - QuerySet API reference | Django documentation | Django
Anonymous
i am facing in Django form
Anonymous
i am not able to connect my template with form
Amit
What is the Regular expression for email validation??
Django Bot
>> Links - Tutorial: Django REST with React (Django 2.0 and a sprinkle of testing) - Django Tutorial | Internationalization & Localization