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/
Doragonsureiyā
Please am new to Django how to I get started I already have it installed
Check out PythonRes, a channel for Python resources (links to help you out).
Денис
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?
Денис
Ssh can be great
well? what exactly do you need?
Cradle
well? what exactly do you need?
I want connection with linux hosts. They has python scripts. Just need to run those scripts from server
Денис
I want connection with linux hosts. They has python scripts. Just need to run those scripts from server
This is about Linux administration, not Django-related. You definitely should google something like that https://medium.com/sharma02gaurav/digitalocean-ssh-authentication-and-removing-password-login-ee42b54b622f
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
Денис
I wont be saving images on db Ill be saving emcoded url into db
what's wrong with built-in ImageField and FileField?
Ram
I dont want to save image on file
Денис
I dont want to save image on file
ok, wait for someone else to help you
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
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
O
How to implement drag n drop file upload?
Mirco
Kumar
Use js fetch API
Thnx, I got smthng regarding this... Let me try
Денис
How to implement drag n drop file upload?
the simplest case is described in Django By Example book. And no, we don't help people search for copyrighted book free downloads
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
Анвар
How to list all users in template?
Ghorz
Did you migrate
Ghorz
Is there a free copy of this book?
Quote above by @tor_gash no piracy
Jorge Luis
Quote above by @tor_gash no piracy
The author have to eat too, right
Денис
anyone help me, form resubmission after refresh the browser
form is always resubmitted after refresh. I haven't met any site with another behaviour
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
Anonymous
anyone help me, form resubmission after refresh the browser
No need to write code for this bcz it is the default process by the browser
Денис
it's done bro...using redirect()
yep, redirect is a good way
Rocky
Ya bro
Anonymous
it's done bro...using redirect()
What you are going to do?
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
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
although this error comes up
I think self is another parameter