This file contains 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
from django.conf import settings | |
class MultiPortMiddleware(object): | |
""" | |
Middleware changes the SESSION_COOKIE_NAME to use the current port in the name | |
""" | |
def process_request(self, request): | |
settings.SESSION_COOKIE_NAME = 'sessionid' + request.META['SERVER_PORT'] |
This file contains 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
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |
This file contains 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
"""A basic database set-up for Travis CI. | |
The set-up uses the 'TRAVIS' (== True) environment variable on Travis | |
to detect the session, and changes the default database accordingly. | |
Be mindful of where you place this code, as you may accidentally | |
assign the default database to another configuration later in your code. | |
""" | |
import os |