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

Project Local setup issue while migrating #6

Closed
sree-hari-s opened this issue Oct 1, 2023 · 13 comments
Closed

Project Local setup issue while migrating #6

sree-hari-s opened this issue Oct 1, 2023 · 13 comments
Labels
bug Something isn't working

Comments

@sree-hari-s
Copy link
Contributor

No description provided.

@nfoert
Copy link
Owner

nfoert commented Oct 1, 2023

Hello! Could you please include a description of the problem you're having?

@nfoert nfoert added the bug Something isn't working label Oct 1, 2023
@sree-hari-s
Copy link
Contributor Author

image
image

This is the issue i am facing

@nfoert
Copy link
Owner

nfoert commented Oct 2, 2023

Hi, thanks for the screenshot. This is actually something that I was working on fixing, and I'm updating the documentation soon.
A fix for you would be to remove the /migrations folders from /main and /authentication and then run python manage.py makemigrations main authentication and then python manage.py migrate

Let me know if this resolves your issue.

@sree-hari-s
Copy link
Contributor Author

Yeah now issue with migration is over

image

@nfoert
Copy link
Owner

nfoert commented Oct 2, 2023

Yeah now issue with migration is over

image

Hi, please continue to the next step in the installation instructions.
Here it is:

Navigate to http://127.0.0.1:8000/admin in your browser. Log in using the credentials for your new super user and find the server info section. Configure the ip to be http://127.0.0.1:8000 and the server name to be whatever you like. I reccomend making the name what you're planning on your domain to be.

@sree-hari-s
Copy link
Contributor Author

OperationalError at /admin/main/server/
no such table: main_server

Cannot take the server info section also due to this same error

@nfoert
Copy link
Owner

nfoert commented Oct 2, 2023

OperationalError at /admin/main/server/ no such table: main_server

Cannot take the server info section also due to this same error

Yeah... This is my bad, there's a whole tricky problem with the migrations that made things break. Try to remove the migrations folders again and redo the makemigrations and migrate commands
I should have just fixed this with the latest commit but no promises

@sree-hari-s
Copy link
Contributor Author

This issue still seems to exist.

no such table: main_server

@nfoert
Copy link
Owner

nfoert commented Oct 3, 2023

This issue still seems to exist.

no such table: main_server

That's strange. I just tested with the latest changes to the repo and everything worked as expected. Maybe try to delete the entire folder and start from the beginning of the installation instructions? You may have some out of date files.

@sree-hari-s
Copy link
Contributor Author

image

I just tried you latest code again and have verified again,
You can see that during the initial setup tables created by models.py doesn't reflect with the makemigrations command.

#14 I have made fix ,you can try that out

@nfoert
Copy link
Owner

nfoert commented Oct 3, 2023

PR #14 merged. Thanks for working on this.

@sree-hari-s
Copy link
Contributor Author

image
image

The setup issue still seems to exist

@nfoert
Copy link
Owner

nfoert commented Oct 7, 2023

image image

The setup issue still seems to exist

Sorry, I didn't see your comment. Check for my response in #20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants