Repository navigation
Make the documented quickstart work on a fresh clone - #124
Open
konradvoelkel wants to merge 1 commit into
Open
konradvoelkel wants to merge 1 commit into
konradvoelkel wants to merge 1 commit into
Conversation
Following the installation instructions in README.md failed in three independent places. * Both site settings modules end in `from .local_settings import *`, but local_settings.py is deliberately not tracked by Git and nothing told you to create it, so every management command died with a bare ModuleNotFoundError (pythongh-120). Each site now ships a local_settings.py.example to copy, and a missing local_settings.py raises ImproperlyConfigured naming the file to copy from. * speed_python/settings.py listed 'gunicorn' in INSTALLED_APPS, but gunicorn is only in deploy-requirements.txt, so a checkout installed from requirements.txt could not start at all. gunicorn has not had to be an installed app since it dropped `run_gunicorn` in 19.0. * README.md pointed newcomers at sample_project as the starting point, but that directory has neither __init__.py nor urls.py, so `DJANGO_SETTINGS_MODULE=sample_project.settings` raises ModuleNotFoundError for sample_project.urls. The installation and customization sections now describe the two real site packages; sample_project/deploy is still named for the Apache and lighttpd examples it provides. speed_python/README.md loses the same dead steps (easy_install, copying sample_project, syncdb, run_gunicorn) and the `pip install codespeeed` typo reported in pythongh-120. Verified by installing requirements.txt alone into a fresh virtualenv and walking the instructions end to end: migrate, createsuperuser, loaddata and every page rendering. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
konradvoelkel
force-pushed
the
fix-quickstart
branch
from
December 4, 2026 07:46
239bb8e to
a2f8c87
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Following the Installation section of
README.mdon a fresh clone fails in three independent places. This fixes all three and makes the documented path work end to end.Closes #120.
1. No
local_settings.py, and nothing says to create oneBoth site settings modules end in
from .local_settings import *, butlocal_settings.pyis deliberately untracked and no file in the repo told you to create it. So every management command died with a bareModuleNotFoundError: No module named 'speed_python.local_settings', which does not tell a newcomer what to do about it.Each site now ships a
local_settings.py.exampleto copy (SECRET_KEY,DEBUG, commentedALLOWED_HOSTSandDATABASES), and a missinglocal_settings.pyraisesImproperlyConfigurednaming the file to copy from and the README section to read.2.
'gunicorn'inINSTALLED_APPSmadespeed_pythonunimportablespeed_python/settings.pylisted'gunicorn'inINSTALLED_APPS, but gunicorn is only indeploy-requirements.txt— so a checkout installed fromrequirements.txt, as the README says to, could not runmanage.pyat all. gunicorn has not needed to be an installed app since it droppedrun_gunicornin 19.0 (2014).3. The README pointed at
sample_project, which is not importablesample_project/has neither__init__.pynorurls.py, soDJANGO_SETTINGS_MODULE=sample_project.settingsraisesModuleNotFoundError: No module named 'sample_project.urls'. The installation and customization sections now describe the two real site packages in this repository instead.sample_project/deployis still named, for the Apache and lighttpd examples it provides.speed_python/README.mdloses the same dead steps (easy_install pip, copyingsample_project, the PYTHONPATH symlink,syncdb,manage.py run_gunicorn) and thepip install codespeeedtypo reported in #120.Verification
Exported the working tree into an empty directory, created a virtualenv with
requirements.txtalone, and walked the instructions as written: copy the example, generate aSECRET_KEY,migrate,createsuperuser,loaddata,runserver— then checked every page renders. Alsopython manage.py test(112 tests, 1 skipped) andflake8clean; the two new tests assert the example file keeps existing and stays valid Python, sincesettings.pynow depends on it.Three things I deliberately left alone — maintainers' call
speed_python/deploy/supervisor.confstill invokesgunicorn_django, removed from gunicorn in 19.0. Should that file be updated togunicorn speed_python.wsgi:application, or is it stale beyond repair?speed_python/generate_secret.pywrites asecret_keyfile that nothing in the repository reads. Dead since the settings were restructured?sample_project/is referenced by the docs only as a deploy-config example now. Would you like it removed, or kept as-is?Happy to split this into smaller commits or drop any part of it.
🤖 Generated with Claude Code