Anonymous
In which server you guys deployed your django projects?
Mykel
Please am new to Django how to I get started I already have it installed
Firdaus
You can try the official tutorial — https://docs.djangoproject.com/en/2.2/intro/tutorial01/
Mirco
Anonymous
Денис
Anyone plz
VPS, Ubuntu server, nginx+uwsgi. Only once and far ago, so can't consult you in any way
Cradle
Hello guys. Need your assist. I need to connect remotely to any host with django server. Something like paramiko in python...the host has linux os. Thanks for help
Денис
Claudio
Hi everyone, I have a question:
I have a model, for ex Employee, which has two foreign keys: company and sector
Since i can't use a same related_name for bot them, what can I choose as related name for both fields?
It is not possible to use 'emplyees' both for company and sector, even if it is the most natural and logic thing to do, can someone also explain why?
Cradle
Денис
Claudio
Ram
How do i upload image into database (encoded image) via upload button?
How do i get preview of image uploaded?
Just like when you upload image on Instagram?
Ram
I wont be saving images on db
Ill be saving emcoded url into db
Денис
Ram
I dont want to save image on file
Srijwal
Hi, is there any django package for generating PDF from models? I came to see reportlab. But the report I need to print is not just a 'hello world' or a simple table. Instead, I need to print after assigning values to a template ( Its an invoice)
Aswin
Use Django-Wkhtmltopdf
Muflone
Muflone
because it doesn't exist
Muflone
are you using django 2.0 ?
Muflone
django 2.0 had an issue of corrupting tables with sqlite during migrations.
you have to upgrade to a newer django and create the database again
Muflone
that from the screenshot is django 2.2, not 2.0
Muflone
no
Muflone
did you created the database using django 2.2 ?
Muflone
do you have a table called reddit_subreddit_old in your models?
Muflone
with _old ?
Muflone
then read on your traceback where you got that _old table
Muflone
that thing is shown in your error page, under the error
0xAllan
I have an app that validates and registers user profiles,I want each profile to have a unique slug e.g https://myexample.com/elon-musk instead of https://myexample.com/profile.How can I go about this?
Yuri
How do I save a Many-to-Many entity with rest framework?
Yuri
My payload has an array of entities
Kumar
How to hit rest api in django from a js file without any framework
Mirco
O
How to implement drag n drop file upload?
Mirco
Mirco
Mykel
Mendes
Dude, it's incredible what u can do in almost no time with this shit...
Mendes
Django surely is the fastest prototyping framework I've ever used...
Mendes
I just did a warehouse control system in 6 hours...
Dude, a full functional system with everything I need in 6 hours...
Mendes
I didn't even knew django before...
Mendes
This shit is beautiful! Dude, gonna stick with it for quick work...
Rocky
anyone help me, form resubmission after refresh the browser
Jorge Luis
Анвар
How to list all users in template?
Ghorz
Did you migrate
Ghorz
Ghorz
Anonymous
How do i upload image into database (encoded image) via upload button?
How do i get preview of image uploaded?
Just like when you upload image on Instagram?
1) In html form you need to use
input type="file" (browse btn)
And
A Button named Preview
And
A img tag with src=" " (empty)
2) after clicking on input (Browse) button and select image.
3) set onClick() function on btn Preview and write javascript or jQuery code to get the value from input type="file" (browse)
And set the img source as input value from the input type="file"
It will Preview the image on img tag which is placed before form submit btn and after Preview btn.
4)After form submission img should be added inside the static file (write django code for this process,)
5) then you can access that image by using static file access method in django
Rocky
Денис
Rocky
Ya bro
Anonymous
Anonymous
Rocky
Add items in cart
Rocky
aft add in cart when fresh the browser again increment item
Rocky
Now it's done
Anonymous
Ho kk nice
Anonymous
Shubham
hi guys caught up with a issue
Shubham
https://dpaste.de/o22h
Shubham
TypeError: init() takes 1 positional argument but 2 were given
Shubham
actually only 1 para is passed
Shubham
although this error comes up
Anonymous
Shubham
Anonymous