Fabian
Good morning, anywebsite to find freelance django jobs?
Anonymous
Celery process is not working after python upgrade we are using supervisord for the celery to start a d redis connection
Anonymous
All are working fine but tasks are not picking
Дмитрий
+
Fabian
Hi, I'm having troubles trying to dockerize django app with nginx
Fabian
When I try to do so with django built in webserver everything works
Valery
Ок
XeroX
how can I implement a Recommender class in django?. My Recommender takes product_id as input calculates the similarity and gives list of similar items to the given Product. I am facing difficulties in implementing it in my django project
Igor
guys, someone use copy_from?
Igor
guys, has anyone used the python cursor.copy_from to import a csv in postgres? can someone help me?
Cesar
how can I implement a Recommender class in django?. My Recommender takes product_id as input calculates the similarity and gives list of similar items to the given Product. I am facing difficulties in implementing it in my django project
Are you comfy dealing with machine learning algorithm? If yes: I don't think you're well prepared to work with this project if you can't do a simple google search if no: try using some collaborative filtering techniques Anyway that falls as off topic since they are not related to Django but on the algorithms
Alex
Hi guys! Which approach you most recomment to build a saas aplication in django? Thank you
Maz
How do you intend to serve it to your end users?
Alex
How do you intend to serve it to your end users?
Not sure if I got you, but I intend to build an global app and anyone can sign in and then each one has their on privacy and schemas or database.
Anonymous
When I try to do so with django built in webserver everything works
https://github.com/marciks/python-docker-nginx/
Anonymous
I have grouped everything in a docker-compose
Fabian
did you make that repo?
Anonymous
Yes, but it uses other people projects
Anonymous
Like nginx le
Maz
Not sure if I got you, but I intend to build an global app and anyone can sign in and then each one has their on privacy and schemas or database.
I meant what is your intended deployment model? If your app is global...you should build it from the ground up with scalability and high availability in mind. This will influence everything from model design to cache choices. You can also look into multi tenancy. The best deployment platform for such is a cloud environment that will handle scaling and HA for you.
Fabian
Yes, but it uses other people projects
i need to dockerize something like that but with mysql db aswell
Anonymous
Which enables lets encrypt
Anonymous
Oh, it uses postgres
Fabian
can u help me?
Fabian
i mean, Django, gunicorn, nginx and mysql
Fabian
with docker
Anonymous
It uses some custom code from django cookie cutter project
Anonymous
Something related to make django wait for database
Anonymous
Not sure how to convert it for mysql
Anonymous
But do you really needs mysql?
Fabian
Im looking at your repo, but it doesnt have a docker-compose
Fabian
well, its a work in progress app, that we already test locally with mysql, now we want to dockerize and deploy to AWS
Anonymous
It has a production.yml and local.yml
Anonymous
Local.yml only starts a postgres container locally
Anonymous
Prod will start postgres, django with gunicorn and nginx
Anonymous
I use it always i need to start a fresh project
Maz
This will point you in the right direction.
Maz
Anytime bro.
Jay
I need a suggestion from you guys. I want to learn Django framework completely. What are the best resources or techniques?
Doragonsureiyā
I need a suggestion from you guys. I want to learn Django framework completely. What are the best resources or techniques?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Facing problem in fetching more than one image from the database
Богдан
send code and ask
Anonymous
Ohk
Anonymous
query = "select caticon from Myadminapp_addcat" models.cursor.execute(query) movies = models.cursor.fetchone() return render(request, "gallary.html", {'curl':curl,'media_url':media_url,'movies':movies})
Anonymous
if i write fetchall() instead of fetchone() it takes all images name in a tuple .
Anonymous
and it takes image address as /media/('IMG_20180511_205607.jpg',) plz help me solve this problem immediately 🙏🏻🙏🏻🙏🏻🙏🏻
Shidhant
I am using celery to fetch data from api and saving them.. API has pagination response, so i want to run that task again if api has more pages... Anybody have some idea how should i do it
Vlad
There is a problem. I'm trying to do a full text search and go by tags to articles but I can't find good examples if someone can help I'll be grateful)
Dhruva
I am not able to render my file fields in the Database so not able to upload image
Dhruva
<ul class="errorlist"><li>portraitphoto<ul class="errorlist"><li>This field is required.</li></ul></li><li>high_resolution<ul class="errorlist"><li>This field is required.</li></ul></li><li>company_logo<ul class=" errorlist"><li>This field is required.</li></ul></li><li>product_images<ul class="errorlist"><li>This field is required.</li></ul></li><li>location_img<ul class="errorlist"><li>This field is required.</li></ul></l i><li>product_video<ul class="errorlist"><li>This field is required.</li></ul></li><li>customer_testimonial_video<ul class="errorlist"><li>This field is required.</li></ul></li></ul>
Dhruva
error
ᐯᑌᏞᏦᗩᑎ📈
guys I am creating a blog and every user who does register and login their profile should be created automatically with default profile image? How to solve this?
cj
I don't see you're asking an issue/problem/error properly to ask "how to solve..." things
ᐯᑌᏞᏦᗩᑎ📈
how to solve what?
Now, when I am creating a new user , it doesn't have a default image I am obliged to go admin site and upload that but now I want it to be created automatically with an image I put in ImageField(default='default.jpg')
ᐯᑌᏞᏦᗩᑎ📈
yeah but I don't know how to do that's why I ma here asking
Alex_E
https://py-orm.com Detailed Query Development Guide Using Django ORM with SQL Notations
Abhishek
How to validate form
Mirco
How to validate form
Study forms on Django official docs, you will find lots of stuff about validation
Abhishek
I have created but not working
vijin
Hai anyone know python 2.7 and Django 1.9 TCP connection? Please suggest me required details
Mirco
I have created but not working
If you don't share code, it's hard to help u
Abhishek
Data not save in database
Mirco
Data not save in database
Share the code, we don't have a magic ball
vijin
I strongly suggest you to upgrade both python and Django
I can't because previous script running under this
Mirco
Python 2 is dead
vijin
That a large project
Mirco
That a large project
Start upgrading piece by piece