Show
Ignore:
Timestamp:
02/27/08 16:21:32 (2 years ago)
Author:
JensDiemer
Message:

NEW internal page handling:
-internal pages doesn't store in the database.
-additional CSS/JS files linked as normal static files.
-new path constants in the settings.py
See also:  http://pylucid.org/phpBB2/viewtopic.php?t=198
TODO: refactory the insall section and the plugin manager for this. Remove the unused InternalPage? model.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/plugins_internal/auth/auth.py

    r1440 r1449  
    4242__version__ = "$Rev$" 
    4343 
    44 import datetime 
     44import datetime, posixpath 
    4545 
    4646from django.http import HttpResponseRedirect 
     
    317317        next_url = self.request.POST.get('next_url',self.URLs['scriptRoot']) 
    318318        salt = js_login_data.salt 
     319 
     320        media_url = posixpath.join( 
     321            settings.MEDIA_URL, settings.PYLUCID_MEDIA_DIR, 
     322        ) 
    319323        context = { 
    320324            "username": user.username, 
     
    322326            "salt": salt, 
    323327            "next_url": next_url, 
    324             "PyLucid_media_url": settings.PYLUCID_MEDIA_URL, 
     328            "PyLucid_media_url": media_url, 
    325329        } 
    326330