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
inchidi
@inchidi Can you help ?
sorry am not familiar with docker
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
Jimmies San
Well, I love this bot
i thought same thing :D
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...?
Daniel
created a database name itoucan and granted all the previleges to user 'mannu'
you need to pass the environment variable for database name, it will be created automatically and privilege granted...
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
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
mλdcodez
you want to do it manually and didnt use django forms? what html element you gonna use? checkboxes?
Well, something like, when we setup pinterest etc it asks for interest in what categories. I wanna do the same kind of thing.
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
Jimmies San
That's why you do unit tests
tht's why i solved. was an update problem to django 2.0
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
😂😂😂❤️
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?
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
i think it must be done in views, when i receive form data, but how.. please help. Thanks 😊
maybe this answer will help. i think you can check in __init__ or at firstline of save()
Jimmies San
just add app_label inside Meta class of the model should fix it tho
i will try... i'ts weird but importing model with project.app.models and not doing from .models import - fix the problem
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
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
Jimmies San
I'm looking for a good example of DRF deployment with Jenkins, git, docker, nginx and gunicorn
create an installation based on git+docker+nginx+unicorn, after that put all together in jenkins [travis, or whatver] is really few minutes.
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
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
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
Sending all labeled logs to a persistent volume
Luis
🤔
Mi
Then you can use logstash or something similar to parse them