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
<VirtualHost brooski.net:80> | |
ServerAdmin [email protected] | |
ServerName brooski.net | |
ServerAlias www.brooski.net | |
DocumentRoot /srv/www/brooski.net/public_html | |
WSGIScriptAlias / /srv/www/brooski.net/brooski/django.wsgi | |
<Directory /srv/www/brooski.net/brooski> | |
Order allow,deny |
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
# this is my view, POST sends the brew_id, and the username in hidden form fields | |
def add_image(request, brew_id): | |
if request.method == 'POST': | |
brew = Brew.objects.get(pk=brew_id) | |
user = User.objects.get(username__exact=request.POST['user']) | |
form = BrewImageForm(request.POST, request.FILES) | |
form.save() | |
return HttpResponseRedirect('/brew/' + brew_id) | |
else: | |
form = BrewImageForm() |
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
#This is the function where the error is occurring: | |
# Doesn't need csrf_protect since no-one can guess the URL | |
def password_reset_confirm(request, uidb36=None, token=None, template_name='registration/password_reset_confirm.html', | |
token_generator=default_token_generator, set_password_form=SetPasswordForm, | |
post_reset_redirect=None): | |
""" | |
View that checks the hash in a password reset link and presents a | |
form for entering a new password. | |
""" |
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
sh-3.2# rake gems:install --trace | |
(in /Users/joelklabo/development/pinchd/gotribal) | |
** Invoke gems:install (first_time) | |
** Invoke gems:base (first_time) | |
** Execute gems:base | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
undefined method `[]' for nil:NilClass | |
/Users/joelklabo/development/pinchd/gotribal/config/environments/development.rb:36:in `load_environment' |
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
sh-3.2# rake gems:install --trace | |
(in /Users/joelklabo/development/pinchd/gotribal) | |
** Invoke gems:install (first_time) | |
** Invoke gems:base (first_time) | |
** Execute gems:base | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
undefined method `[]' for nil:NilClass | |
/Users/joelklabo/development/pinchd/gotribal/config/environments/development.rb:36:in `load_environment' |
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
#This is what is around line 36 in development.rb which is apparently causing the error | |
# Loading constants from /config/local.yml (LOCAL_CONFIG const) | |
DEV_CONFIG = LOCAL_CONFIG[RAILS_ENV] | |
DEV_EMAIL = DEV_CONFIG['email'] | |
#This is the error | |
sh-3.2# rake gems:install --trace | |
(in /Users/joelklabo/development/pinchd/gotribal) | |
** Invoke gems:install (first_time) | |
** Invoke gems:base (first_time) |
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
# this is my local.rb file: | |
p LOCAL_CONFIG | |
LOCAL_CONFIG = YAML.load_file("#{RAILS_ROOT}/config/local.yml") | |
sh-3.2# rake gems:install --trace | |
(in /Users/joelklabo/development/pinchd/gotribal) | |
** Invoke gems:install (first_time) | |
** Invoke gems:base (first_time) | |
** Execute gems:base |
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
#local.rb | |
p YAML.load_file("#{RAILS_ROOT}/config/local.yml") | |
#trace | |
sh-3.2# rake gems:install --trace | |
(in /Users/joelklabo/development/pinchd/gotribal) | |
** Invoke gems:install (first_time) | |
** Invoke gems:base (first_time) | |
** Execute gems:base | |
** Invoke environment (first_time) |
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
production: | |
email: '[email protected]' | |
mysql_password: '' | |
postgres_password: 'joelbenjaminklabo' | |
development: '' | |
email: '[email protected]' | |
mysql_password: '' | |
postgres_password: 'joelbenjaminklabo' | |
test: '' | |
email: '[email protected]' |
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
sh-3.2# rake gems:install --trace | |
(in /Users/joelklabo/development/pinchd/gotribal) | |
** Invoke gems:install (first_time) | |
** Invoke gems:base (first_time) | |
** Execute gems:base | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
syntax error on line 5, col 1: ` email: '[email protected]'' | |
/opt/local/lib/ruby/1.8/yaml.rb:133:in `load' |
OlderNewer