Skip to content

Instantly share code, notes, and snippets.

View dead23angel's full-sized avatar
🏠
Working from home

David Ange dead23angel

🏠
Working from home
View GitHub Profile
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/news/view/para-strok-o-django-5.html
Django Version: 1.7b1
Python Version: 3.3.2
Installed Applications:
('django_admin_bootstrapped.bootstrap3',
# coding: utf8
from django.views.generic.list import ListView
from django.views.generic import CreateView
from django.core.urlresolvers import reverse
from fc_torpedo.apps.news.models import NewsModel, Comment
from fc_torpedo.apps.news.forms import CommentForm
class NewsList(ListView):
queryset = NewsModel.objects.select_related().all().order_by('-date')
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/news/view/para-strok-o-django-5.html
Django Version: 1.7b1
Python Version: 3.3.2
Installed Applications:
('django_admin_bootstrapped.bootstrap3',
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/news/view/para-strok-o-django-5.html
Django Version: 1.7b1
Python Version: 3.3.2
Installed Applications:
('django_admin_bootstrapped.bootstrap3',
# coding: utf8
from django.db import models
from django.conf import settings as main_settings
from fc_torpedo.apps.news.models import NewsModel
class Comment(models.Model):
created = models.DateTimeField(auto_now_add=True)
author = models.ForeignKey(main_settings.AUTH_USER_MODEL)
body = models.TextField()
Traceback (most recent call last):
File "/home/lemax/torpedo/fc-torpedo/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/lemax/torpedo/django-trunk/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
File "/home/lemax/torpedo/django-trunk/django/core/management/__init__.py", line 391, in execute
django.setup()
File "/home/lemax/torpedo/django-trunk/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/lemax/torpedo/django-trunk/django/apps/registry.py", line 105, in populate
IndentationError at /
unexpected indent (elFinder.py, line 1317)
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 1.6.2
Exception Type: IndentationError
Exception Value:
unexpected indent (elFinder.py, line 1317)
Exception Location: /home/lemax/coderweb/local/lib/python2.7/site-packages/cked/views.py in <module>, line 8
Python Executable: /home/lemax/coderweb/bin/python
Install packages failed: Error occurred when installing package Pillow.
The following command was executed:
packaging_tool.py install --build-dir /tmp/pycharm-packaging2563402188824014007.tmp Pillow
The error output of the command:
Traceback (most recent call last):
File "/home/lemax/Soft/pycharm/helpers/packaging_tool.py", line 125, in main
server {
listen 80;
server_name coderweb.ru;
access_log /var/www/coderweb.ru/logs/access.log;
error_log /var/www/coderweb.ru/logs/error.log;
location / {
uwsgi_pass unix:///var/tmp/coderweb.ru.sock;
include uwsgi_params;
}
[uwsgi]
vhost = true
plugins = python
socket = /var/tmp/coderweb.ru.sock
chmod-socket = 666
master = true
enable-threads = true
processes = 2
wsgi-file = /var/www/coderweb.ru/www/www/wsgi.py
virtualenv = /var/www/coderweb.ru