Abhi
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'itoucan',
'USER': 'mannu',
'PASSWORD': 'mysecretpassword',
'HOST': 'postgres',
'PORT': 5432
}
}
Abhi
this is my database config in settings.py
Abhi
when i am running the docker instance i am getting this error
FATAL: password authentication failed for user "mannu"
Abhi
what might be the problem
Django Bot
>> Links
- iyanuashiri/meethub: This is a Python/Django based event management system.
Abhi
@inchidi Can you help ?
Anonymous
Ask
Django Bot
>> Links
- Boilerplate code to Use Django with React
Mi
Something like that but with vue?
Django Bot
>> Links
- Deploying Django Sites Using the 12-Factor Pattern: Flexibility, Portabilit
Mi
Well, I love this bot
Mi
😂
Rami Salem
Hello all , what dose the defualt Django Data Base ?
Django Bot
>> Blogs
- New Course: Creating and Distributing Python Packages
mλdcodez
I want to create a page where one can select multiple options(basically a multiple select view) so. What would I use to save that form data when user clicks submit. Because. I think. That will return a list or...?
inchidi
Something like that but with vue?
i dont think you will need something like that anyway. i cant see the benefits and i think it will be harder when working on team that split between frontend and backend
inchidi
inchidi
Mi
Daniel
https://medium.com/@kdpisda/how-to-make-fail-safe-apis-in-django-54fddb2a1679
Anonymous
The best book for good practices in Django is Two scoops of django
Django Bot
>> Links
- How to Write Deployment-friendly Applications · Homepage of Hynek Schlawack
Daniel
Jimmies San
aaargh i'm going crazy with RuntimeError: Model class invoices.models.Customer doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Django Bot
>> Blogs
- Django Channels 2.0 to Production Environment
>> Links
- Alize: Visualize Your Github Profile
- Programmare in Python .it | I Video Corsi Python di Programmare In Python .
- Kevin Mahoney: A Few Django ORM Mistakes
Anonymous
Jimmies San
it's a personal sideproject, tdd is useful for mid-long project
Jimmies San
thnks for your help btw.
Anonymous
Welcome to your sarcastic thanks
Jimmies San
😂😂😂❤️
inchidi
Daniel
https://cheesecakelabs.com/blog/keeping-data-integrity-django-migrations/
Javi
morning guys. Quick question. Do you know if the only way to use a string literal as a filter (like "id=1") is to convert it to a dict? or is there any other way?
Anonymous
Javi
I solved it using ast.literal_eval and passing a dictionary instead
Javi
There is also a module that does something similar, just in case you are interested: https://github.com/denz/django-stored-queryset
Javi
it's cleaner than my solution but its enough
mλdcodez
https://pastebin.com/D5puiw5M
need a little help
mλdcodez
https://pastebin.com/ZkHySR9w
mλdcodez
these are my files and,
mλdcodez
i wish to make user choose atleast 5 interest from interest list,
mλdcodez
how can i set that to minimum 5 selections to proceed
mλdcodez
i think it must be done in views, when i receive form data, but how.. please help. Thanks 😊
inchidi
inchidi
Jimmies San
it's a bit customized, do you know cookiecutter-django ?
Jimmies San
https://github.com/pydanny/cookiecutter-django
Jimmies San
but it's an issue around django 2.0 if i well understand
inchidi
hmm am not familiar with that
Jimmies San
cookiecutter is really cool, you can find template for a lot of things. and easily customizable
Jimmies San
btw, the problem seems to be: i try to access model before app is loaded
mλdcodez
Mi
I'm looking for a good example of DRF deployment with Jenkins, git, docker, nginx and gunicorn
Anonymous
Digital ocean got lots of docs
Mi
Yeah, I got the big picture
Jimmies San
cool :)
Mi
Thanks 😊
Django Bot
>> Links
- Django Channels 2.0 to Production Environment | Coding For Entrepreneurs
- The NHS Picks Wagtail CMS to Power Next Generation of its Online Services |
Mi
Mi
I have to create a user and a database for my mysql container
Mi
And I've put my django project in a src directory
Mi
That container is OK
Mi
I have to fix mysql connection problems too
Django Bot
>> Links
- Making React and Django play well together - the "hybrid app" model - Fract
Luis
Luis
Guys, I have a question
Luis
I will deploy my project in docker with gunicorn, I want to know which is the better way of logging it.
Luis
Can anyone help me?
Django Bot
>> Links
- Django management commands slow startup · Issue #444 · devilry/devilry-djan
Mi
Mi
Sending all labeled logs to a persistent volume
Luis
🤔
Mi
Then you can use logstash or something similar to parse them