Django

Code

Ticket #3840 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

"Settings file" is unclear in modpython docs.

Reported by: anonymous Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: dev@simon.net.nz Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Hello,

On this page: http://www.djangoproject.com/documentation/modpython/ You write: "…and replace mysite.settings with the Python path to your settings file."

Could you please clarify? What is the "settings file"? settings.py? From where? I'm installing Kforge on a ubuntu server.

Many thanks,

Thomas

Attachments

modpython.diff (0.6 kB) - added by Simon G. <dev@simon.net.nz> on 03/29/07 06:46:49.
modpython2.diff (0.6 kB) - added by Simon G. <dev@simon.net.nz> on 03/29/07 20:05:04.

Change History

03/27/07 16:57:19 changed by Simon G. <dev@simon.net.nz>

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to invalid.
  • needs_tests changed.
  • needs_docs changed.

Yes, the settings file is settings.py, and your PYTHONPATH is an environment setting that tells python where to find packages. Can you please direct questions like this to the django-users or django-developers mailing lists? thanks.

03/29/07 06:45:45 changed by Simon G. <dev@simon.net.nz>

  • status changed from closed to reopened.
  • cc set to dev@simon.net.nz.
  • summary changed from Python path to your settings file... to "Settings file" is unclear in modpython docs..
  • has_patch set to 1.
  • resolution deleted.
  • stage changed from Unreviewed to Ready for checkin.

03/29/07 06:46:35 changed by Simon G. <dev@simon.net.nz>

Looking over django-users, this appears to be confusing a number of users. The attached patch clarifies this a bit.

03/29/07 06:46:49 changed by Simon G. <dev@simon.net.nz>

  • attachment modpython.diff added.

03/29/07 12:13:57 changed by ubernostrum

Simon, a better wording might be "replace mysite.settings with the Python path to your Django project's settings file".

Of course, then we may run into problems with the phrase "Python path", but we'll deal with that when we get there...

03/29/07 20:05:04 changed by Simon G. <dev@simon.net.nz>

  • attachment modpython2.diff added.

03/29/07 20:05:16 changed by Simon G. <dev@simon.net.nz>

good idea, here's a new patch.

03/30/07 01:14:46 changed by mtredinnick

We're using the phrase "Python import path" in most other places for a dotted string like this, so let's use that here, too. No need for a new patch, I'm about to commit this. Merely explaining the way my tiny, twisted mind works.

03/30/07 01:16:41 changed by mtredinnick

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [4864]) Fixed #3840 -- Attempted to clarify how to specify the settings file configuration for mod_python.


Add/Change #3840 ("Settings file" is unclear in modpython docs.)




Change Properties
Action