-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Comments
Fixed this in the latest commit. Instead now you pass the current project name and new project name as arguments |
yes running python manage.py rename demo djecommerece worked |
It worked but there is no djecommerece/Setting directory in it. |
|
it did not work, displaying error: No module named 'djecommerce' |
Same error |
python3 manage.py rename djecommerce ecommerce first mention default app name and later your new name to rename successfully |
Can't rename the demo file? |
oh so in order for it to rename the file
depending on current file name also add it to the code before adding the new name |
Good day Collins
My name is Timothy Dawadakpoye
Please I would need your help
am trying to add data to my django project using the admin page but am
getting this error
'__str__ returned non-string (type tuple)'
…On Mon, 6 Jun 2022 at 13:16, collins Tuti ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQC5M3I2B6HO2TK3ITKVD2DVNXTZXANCNFSM4IUSFXLA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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.
The text was updated successfully, but these errors were encountered: