Ram Kumar Shukla
I am try but it is not working
What is the error after trying this one
S
Same sir
.
Have you checked in which environment you are in?
This is creating only in docker container when I ran the same code on local venv it works..
Syanty
I am having server error 500 on django project deployment on heroku Can anyone know how to fix it?
✙Yaroslav
prompt, accidentally imported the desired function from the wrong place. how to remove this import? The import line did not appear at the top.
Syanty
read logs
Logs are ok The problem is even if i m running locally with status debug as false Its showing same error
Mirco
if you don't share the error , it's impossible to help u
Doragonsureiyā
prompt, accidentally imported the desired function from the wrong place. how to remove this import? The import line did not appear at the top.
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, platform, modules, etc. and also show your code using any pasting service.
Anonymous
Hi guys , which server provider could you suggest me ,ideally free ..just try to see a small development project live
Anonymous
Thx all
Anonymous
Heroku, pythonanywhere
Right , Thanks a lot ))
Anonymous
👍
Raghu
Hi can anyone help me. I have created django app. Why to create django rest framework for my django app?? Any use cases using drf?? Where to implement drf??
isa
I have changed my development computer and cloned the repo from Github. I made following to restart migration. Because I have changed my development computer. But there is no migration in database. find . -path "*/migrations/*.py" -not -name "__init__.py" -delete find . -path "*/migrations/*.pyc" -delete python manage.py migrate
isa
No migration Gil.
isa
It says "No changes detected"
Gil
No migration Gil.
Kind of database?
isa
PSQL
Gil
PSQL
It is about project methodology. No problem, you db is remote, is up to date. You can work with this other pc, no migrations no change, is not a problem, if you dont do changes on models... But maybe better to track all migrations to the project ( git) and share over all computers. git add at original computer, and play!
isa
Repo on previous computer has been destroyed :(
isa
My server of DB was on previous computer
Gil
Repo on previous computer has been destroyed :(
Small.problem. You only loss how you has been arrived here. Only this. Make the initial migrations again and play :)
isa
I have installed new PSQL with new computer. I only have models.py on new computer.
Gil
Ok, and when you makemigrations, and migrate, nothing, yes?
isa
DB is operative. I mean django can login and operate
isa
yes. nothing happens
Gil
I have installed new PSQL with new computer. I only have models.py on new computer.
New pssql with old data, yes? This question is because what migrations are applied are stored.in db, for this reason is important
isa
new psql with no data and no tables.
isa
I have only models.py file on project
isa
I cleared migrations file and migrate again and nothing happend on DB
isa
I mean no makemigration files created
Gil
Ok , you can start migrations ever you want. I dont remember exactly the commands, makemigrations --make-initial or something else
isa
I think I should google "initial migrations" issue. Thanks bro :)
Gil
I mean no makemigration files created
You commands that have you pasted are correct for reset migrations, is what you are doing. Check google
isa
Good day :)
Anonymous
Please tell the purpose of the group?
Ram
How to reset particular database?
Ram
I want to delete data fram a db and reset the counter to 0. Flush works but remove all the data from all dbs
isa
You commands that have you pasted are correct for reset migrations, is what you are doing. Check google
"python manage.py makemigrations app_name" created migrations file for initial. and I migrated it. It worked. Thanks.
Anonymous
i need help in nginx with django and websocket. i m. not understanding how to do this
Shubham
Hello guys I have this tables https://drive.google.com/file/d/1IBD3r9J5-AhY9CYCF95glCfeDQUFABq7/view?usp=sharing how I can query ORM for to see MI phone in electronic category considering the search electronics/ mobiles/smartphones/MI
Shubham
https://drive.google.com/file/d/1IBD3r9J5-AhY9CYCF95glCfeDQUFABq7/view?usp=sharing
Gufran
Can i ask a javascript question here?
Mirco
if it's not related to some Django projects, you cannot
Gufran
Okay !
R
Hi friends need your help please ... I have a django project which has the git configured ... I want to reconfigure it to new repository and push all... How to do this please . 1. Created a repository on GitHub . 2. The try to git remote add and it fails
R
If I clone the blank repository i created on GitHub locally and then copy paste all project and apps to this cloned bank repo ..and then commit it ..will it break anything in the django site ?
SNIR
there is a way to reset django sqllite ?
SNIR
oh that easy. ok thanks
5P34R
And rerun all migrations
5P34R
Anaconda
Hello
Anaconda
Guys i want a help
R
Beautiful it worked. Thanks .... Now trying to integrate project to pythonanywhere
SNIR
if i am using ajax can i still redirect the page from the view ?
Anaconda
I am using django channel but whenever i got to chat page the websoket will close automatically.
R
Yeah
Y dint my sqllite db not copy to GitHub ?
Baku
How to make the admin Panel available in 2 or more languages?
Bekzod
How to make the admin Panel available in 2 or more languages?
settings.py >> LANGUAGE_CODE = 'en-us' is default, need more lang edit in your settings.py
5P34R
Y dint my sqllite db not copy to GitHub ?
It should Do u add sqllite to .gitignore file
5P34R
?
Fabio
Hi guys, I'm starting to work with Django and Wagtail, how I can restore my data inserted? every time I do the build inside my docker all the database is removed. Thanks
Anonymous
i have to build a djnago app which already have tables. os there any way to create migration and schema for existing tables. or advice how its should be done i m. moving my php project to django but wants to keep the db same as its live
Mehmet
Unless, every initialization of container resets to image state of image.
Anonymous
but would it work with orm? and what if i added new columns in existing models /table which is managed false. for that i will have to create columns manually?