Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manage.py rename function will not rename #6

Closed
shendsaliaga opened this issue Sep 8, 2019 · 10 comments
Closed

manage.py rename function will not rename #6

shendsaliaga opened this issue Sep 8, 2019 · 10 comments

Comments

@shendsaliaga
Copy link

The function rename is hardcoded to the project folder name 'demo', however, in this case, it is named 'djecommerce'. I solved this by changing the function to use 'djecommerce' instead of 'demo' so I would initially be able to change the name of the project. However, in the future renaming would require the function to be edited again to whatever the current project name is.

@mattfreire
Copy link
Collaborator

Fixed this in the latest commit. Instead now you pass the current project name and new project name as arguments

@satyajeetkrjha
Copy link

yes running python manage.py rename demo djecommerece worked

@raikk
Copy link

raikk commented Apr 26, 2020

It worked
python manage.py rename demo djecommerece

but there is no djecommerece/Setting directory in it.
as well base.py file is not there after rename

@he-is-right
Copy link

It worked
python manage.py rename demo djecommerece

but there is no djecommerece/Setting directory in it.
as well base.py file is not there after rename

@sirkays
Copy link

sirkays commented Aug 29, 2020

it did not work, displaying error: No module named 'djecommerce'

@ckhera7
Copy link

ckhera7 commented Sep 9, 2020

Same error

@shiva5149
Copy link

It worked
python manage.py rename demo djecommerece
but there is no djecommerece/Setting directory in it.
as well base.py file is not there after rename

python3 manage.py rename djecommerce ecommerce
worked fro me

first mention default app name and later your new name to rename successfully

@SaurabhBagade
Copy link

Can't rename the demo file?
ModuleNotFoundError: No module named 'djecommerce'

@TUTI254
Copy link

TUTI254 commented Jun 6, 2022

oh so in order for it to rename the file

python manage.py rename djecommerece newfilename

depending on current file name also add it to the code before adding the new name

@he-is-right
Copy link

he-is-right commented Jun 6, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants