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

django version in requirements #12

Open
eipVCCRI opened this issue May 30, 2024 · 5 comments
Open

django version in requirements #12

eipVCCRI opened this issue May 30, 2024 · 5 comments

Comments

@eipVCCRI
Copy link

Hi Daniel,

How are you doing?

I have been asked to setup this year's ABACBS abstract submission webpage.

I have question about the django version in the requirement setup. I noticed that there is an activity log regarding a change in version, but it is not in the master. I do have an issue running the "python manage.py migrate" after doing the "pip install -r requirements/local.txt".

We did use your code back in 2019, and Michael Troup (who set it up) had downgrade the Djanjo version to 2.0.13, for query table issue, based on your recommendation. I also tried this, but did not help. Unfortunately Michael is not around at the moment for me to ask.

Hope you can help.
Eddie (VCCRI)

@eipVCCRI
Copy link
Author

eipVCCRI commented Jun 4, 2024

I see the activity is from a Dependabot change.

@daniaki
Copy link
Owner

daniaki commented Jun 4, 2024

Hey Eddie, apologies for the delayed response. What issues are you running into when you run those commands? This project is no longer being maintained and is running on an old version of Django that is also no longer maintained, which probably has unpatched security vulnerabilities. You can try upgrading to Django 3+ LTS or Django 5, however there may be some things that break because of deprecated functions.

@eipVCCRI
Copy link
Author

eipVCCRI commented Jun 4, 2024

Hi Daniel.

No problem and thanks for answering.

You are right in guessing that it has to do with depreciated functions. I will take on your suggestion and move forward in Django versions, instead of back.

I have another question. The Secret json file has a field for "secret_key". I don't know what this is or where to find it. I had guessed it was the secret key that is in the created ABACBSAbsSS/settings.py file. Is this correct, or is it something else?

Thanks
Eddie

@daniaki
Copy link
Owner

daniaki commented Jun 4, 2024

I suggest reading the upgrade guide on the official Django website, and to make sure all tests are passing after the upgrade.

Django uses a secret key for security purposes and you will need one to run the application. You can generate one from the command line (assuming you have django installed):

python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'

Do not check this into Github if you're running from your own fork.

@eipVCCRI
Copy link
Author

eipVCCRI commented Jun 4, 2024

Thanks. Will do.

So the secret key I found in the settings.py is correct.

Thanks

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