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

add necessary columns to admin pages that are underdeveloped #219

Open
4 of 7 tasks
czheng10 opened this issue Sep 20, 2022 · 4 comments
Open
4 of 7 tasks

add necessary columns to admin pages that are underdeveloped #219

czheng10 opened this issue Sep 20, 2022 · 4 comments

Comments

@czheng10
Copy link
Contributor

czheng10 commented Sep 20, 2022

  • More specific task chosen once we get access to admin page

To Do:
Photographers Page

  • Add column for Map Square
  • Add search by name and ID abilities
  • Add column for Approx Location

Photo Analysis Results

  • Add column for analysis name
  • Add column for photo

Photographer Analysis Results

  • Match Photo Analysis
@ryaanahmed
Copy link
Member

@czheng10 is this unblocked now? @jeffreyshen19 mentioned that he got your team going with a local dev db connection.

@czheng10
Copy link
Contributor Author

czheng10 commented Sep 27, 2022

@czheng10 is this unblocked now? @jeffreyshen19 mentioned that he got your team going with a local dev db connection.

@ryaanahmed Not yet, @jeffreyshen19 has set me up to try a database Router class, but the documentation has been a little confusing

@ryaanahmed
Copy link
Member

Ah -- you don't need a separate database Router class. Go to: https://github.com/dhmit/paris_1970/blob/main/backend/config/settings/dev.py

Note that there's a commented out block

# DATABASES = {
#     'default': {
#         'ENGINE': 'django.db.backends.sqlite3',
#         'NAME': os.path.join(BACKEND_DIR, 'db.sqlite3'),
#     }
# }

Comment out the DATABASES dictionary assignment above that (lines 25-34), and uncomment this one. That'll have you run on a local db instead (which I'm guessing you already have from the summer). We can connect at hack hours on Friday about making a sustainable setup but that should get you going for now.

@czheng10
Copy link
Contributor Author

Ah -- you don't need a separate database Router class. Go to: https://github.com/dhmit/paris_1970/blob/main/backend/config/settings/dev.py

Note that there's a commented out block

# DATABASES = {
#     'default': {
#         'ENGINE': 'django.db.backends.sqlite3',
#         'NAME': os.path.join(BACKEND_DIR, 'db.sqlite3'),
#     }
# }

Comment out the DATABASES dictionary assignment above that (lines 25-34), and uncomment this one. That'll have you run on a local db instead (which I'm guessing you already have from the summer). We can connect at hack hours on Friday about making a sustainable setup but that should get you going for now.

@ryaanahmed this worked, thank you!

@czheng10 czheng10 reopened this Sep 27, 2022
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

2 participants