Anonymous
Hi.. Is there any way to backup and restore an AWS postgresql database to a local postgresql database ?
Anonymous
But I'm coming across a permission issue which is causing the restoration to stop halfway
Ярик
Already solved it, nevermind)
Dhruva
What is min length one can define in ImageField
Alex
What is min length one can define in ImageField
I think it depends on your database.
Alex
What is min length one can define in ImageField
it is just a string with unix path to the file
m0nte cr1st0
help me with pycharm pls https://stackoverflow.com/questions/60040829/how-can-to-run-python-unittests-in-django-in-debug-mode-with-pycharm-using-local
Hernan
good morning. I am looking for help with django. I try to pass an HTML to pdf, but it doesn't load the styles correctly. Does anyone know what it can be? I am using Pisa
Himanshu
can i replace views.py with another .py file??
Himanshu
can anyone help me with checksum failed error in payu payment integration in TEST mode.
Noah
hey guys just getting started with the polls app, i am getting the issue with choice_set.create() function can someone check? https://pastebin.com/yNce0iNQ
Xerena🦋
delete all migrations files and file with sqlite extension. then run commands(manage.py makemigration and manage.py migrate) again. Database will be updated.
Anonymous
How do I fetch a single index from a dictionary using for loop My model is converted into a dictionary
Alex
delete all migrations files and file with sqlite extension. then run commands(manage.py makemigration and manage.py migrate) again. Database will be updated.
I mean deleting the database aint the best practice to 'update a database' or did i get something wrong?
Xerena🦋
I mean deleting the database aint the best practice to 'update a database' or did i get something wrong?
If makemigrations and migrate commands are not working, I know it's more accurate to run the commands again by deleting the database and migrations files. If I'm wrong, you can correct me.
Alex
If makemigrations and migrate commands are not working, I know it's more accurate to run the commands again by deleting the database and migrations files. If I'm wrong, you can correct me.
My point is: he will lose all the data in the database, i'd recommend moving the .sqlite file outside his project dir and name it accordingly like db.sqlite.bak and afterwards i'd follow your steps. Dont get me wrong, you're right and all but deleting a database with data will result in the loss of the data. If youre sure about the consistency of your tables you could restore single tables (or at least look at the values) when you are done with the migrations
Alex
Are you running it in production on pythonanywhere? Because i usually do the development locally (on a vm), test it on a staging system (webserver + server running django) before deploying it somewhere
Osvy
please i need help to solve this error,
username
may be you forget? python manage.py makemigrations python manage.py migrate
S
How to add and play audio file in django??
Anonymous
How to add swagger in django project?
Anonymous
I only know how to write swagger api for aws or postman. Django no idea.
Anonymous
Rest swagger in django is what i asked
Anonymous
drf-yasg?
What is this
Muslim
What is this
Django rest framework yet another swagger generator
Aditya
Is it possible to use python speech recognition on django?
Jimmies San
Use pastebin
Jimmies San
Walltext removed.
Aditya
Can any help me regarding that problem.
Kartik
And idea how to setup a cron job on aws with django. I researched a lot . No solution worked.
Mirco
What ?
Google them 😊
Mirco
don't write me in private, write here
Kartik
Google them 😊
Okay. 👍😂
Mirco
internet is very full of examples about that topic
Kartik
Alright.
Jimmies San
celery or Django Q
Or a management command triggered by crontab. Depends from the task.
Kartik
Or a management command triggered by crontab. Depends from the task.
On my local system I was able to do this using crontab -e and crontab -l.
Kartik
But don't know where to put these commands on aws.
Kartik
In local i did it simply using the terminal. How do I do crontab on aws ??
Kartik
In local i did it simply using the terminal. How do I do crontab on aws ??
Fck it's a lot work. 😂 Gonna try the celry method.
Mirco
Fck it's a lot work. 😂 Gonna try the celry method.
one idea could be celery-beat + SQS if u are on AWS but @JimmySan could give u better suggestion than me about it
Jimmies San
But don't know where to put these commands on aws.
what you mean? are you using an ec2 instance? a lightsail? or what?
Kartik
Yes.
Jimmies San
so login into the ec2 instance and create there the cronjob as you usual do
Kartik
A newbie in DevOps right now. 😂
Jimmies San
A newbie in DevOps right now. 😂
this is basic sysadmin stuff :) not devops
Kartik
Alright thanks.
Jimmies San
if you use some provision tool to configure/update you ec2 instance you will need to update that too [this is devops :) ]
Kartik
Okay. 👌
Anonymous
Anyone with Django for professionals by William S Vincent
Jimmies San
😂😂😂😂😂😂😂😂😂😂
Anonymous
we don't support piracy, buy it
Do u have it I can buy it from u if that's what you want
Jimmies San
wait. what?
Jimmies San
😂😂😂
Moeed
Can anyone suggest load testing tool for django channels application?
Anonymous
is any one have ecoomerce webapplication project
Doragonsureiyā
is any one have ecoomerce webapplication project
Please don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello I need help on $z" Just ask about your problem directly! With 52k+ people the probability that someone will help is pretty high. Also please read: http://catb.org/~esr/faqs/smart-questions.html
Alex
captian dont pm me
Anonymous
sorry
Alex
sorry
write your question in the chat
Anonymous
write your question in the chat
want a ecomerse project
Doragonsureiyā
want a ecomerse project
Please, provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you. Include details such as libraries, platforms, modules, etc.
Anonymous
!explain
a project with admin can add product with image,view and manage orders.user can buy product,view products