Changeset 4138
- Timestamp:
- 11/29/06 13:51:54 (2 years ago)
- Files:
-
- django/branches/multiple-db-support/django/core/servers/fastcgi.py (modified) (1 diff)
- django/branches/multiple-db-support/docs/django-admin.txt (modified) (3 diffs)
- django/branches/multiple-db-support/docs/fastcgi.txt (modified) (2 diffs)
- django/branches/multiple-db-support/docs/forms.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/multiple-db-support/django/core/servers/fastcgi.py
r3174 r4138 75 75 return False 76 76 77 def runfastcgi(argset ):77 def runfastcgi(argset, **kwargs): 78 78 options = FASTCGI_OPTIONS.copy() 79 options.update(kwargs) 79 80 for x in argset: 80 81 if "=" in x: django/branches/multiple-db-support/docs/django-admin.txt
r3712 r4138 296 296 ---- 297 297 298 **New in Django development version** 299 298 300 Discover and run tests for all installed models. See `Testing Django applications`_ for more information. 299 301 … … 349 351 --------- 350 352 353 **New in Django development version** 354 351 355 Inform django-admin that the user should NOT be prompted for any input. Useful if 352 356 the django-admin script will be executed as an unattended, automated script. … … 369 373 --verbosity 370 374 ----------- 375 376 **New in Django development version** 371 377 372 378 Example usage:: django/branches/multiple-db-support/docs/fastcgi.txt
r3227 r4138 271 271 RewriteEngine On 272 272 RewriteCond %{REQUEST_FILENAME} !-f 273 RewriteRule ^ /(.*)$ /mysite.fcgi/$1 [QSA,L]273 RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L] 274 274 275 275 Then, create a small script that tells Apache how to spawn your FastCGI … … 290 290 291 291 from django.core.servers.fastcgi import runfastcgi 292 runfastcgi( ["method=threaded", "daemonize=false"])292 runfastcgi(method="threaded", daemonize="false") 293 293 294 294 Restarting the spawned server django/branches/multiple-db-support/docs/forms.txt
r3502 r4138 322 322 errors = {} 323 323 # This makes sure the form accurate represents the fields of the place. 324 new_data = place.__dict__324 new_data = manipulator.flatten_data() 325 325 326 326 form = forms.FormWrapper(manipulator, new_data, errors) … … 337 337 object being edited. 338 338 339 * We set ``new_data`` to the original object's ``__dict__``. This makes340 sure the form fields contain the current values of the object.341 ``FormWrapper`` does not modify ``new_data`` in any way, and templates342 cannot, so this is perfectly safe.339 * We set ``new_data`` based upon ``flatten_data()`` from the manipulator. 340 ``flatten_data()`` takes the data from the original object under 341 manipulation, and converts it into a data dictionary that can be used 342 to populate form elements with the existing values for the object. 343 343 344 344 * The above example uses a different template, so create and edit can be
