Re: Django CMS

2014-11-09 Thread Sergiy Khohlov
send also log from console Many thanks, Serge +380 636150445 skype: skhohlov On Sun, Nov 9, 2014 at 6:06 PM, Niall wrote: > Hi guys, > > I was hoping that someone could help me out with the following. I m > currently trying to access Djang CMS for the first time. I

Re: Loading fixtures in Django 1.7

2014-11-09 Thread Fred Stluka
Leonard, In Django 1.4, you would add this code to the forwards() method of the migration: from django.core.management import call_command call_command("loaddata", "") --Fred Fred Stluka -- mailto:f...@bristle.com

Loading fixtures in Django 1.7

2014-11-09 Thread Leonard Wayne
I am in the process of upgrading from Django 1.6 to 1.7. I have three fixtures. I am trying to figure out how I should load them. One fixture is `initial_data.json`, and I know that starting with Django 1.7 this special fixture no longer gets automatically loaded as it did when we used to run

Re: different urls

2014-11-09 Thread Russell Keith-Magee
On Sun, Nov 9, 2014 at 4:50 PM, gerard wrote: > Hello all, > > i have an application (Django 1.4 LTS) that can be accessed with 2 urls: > the default is https://my.app.org > and the second is http://consult.my.app.org > > In the templates, i'm using: > {% trans "Connect to

Re: Django strange behaviour

2014-11-09 Thread Scot Hacker
On Saturday, November 8, 2014 9:07:04 AM UTC-8, monoBOT monoBOT wrote: > > Lists are inmutable > Lists are absolutely mutable in Python - hence the availability of `result.append()`. Perhaps you're thinking of tuples, which are not mutable and have no methods for alteration. ./s

求解答 说是找不到'hello', 我看Python的搜索path 也对啊 附件是程序 我是第一次接触Django

2014-11-09 Thread zhoumingxing985
NameError at / name 'hello' is not defined Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.7.1 Exception Type: NameError Exception Value: name 'hello' is not defined Exception Location: E:\djcode\mysite\mysite\urls.py in , line 5 Python Executable:

Re: createsuperuser tells me its been skipped due to not running in a tty and then tells me i can do it manually by running createsuperuser. Very confused

2014-11-09 Thread Fred Stluka
On 11/8/14 6:54 PM, James Schneider wrote: If you are running them directly via one-time SSH commands (ie $ ssh host 'command'), note that SSH does not request a full TTY and runs everything inside of a channel, which may also pose problems. In which case, you can resolve the issue by using

Re: Where does django store auth migrations?

2014-11-09 Thread Cal Leeming [iops.io]
Sounds like a bit of a weird edge case, I've had all sorts of problems previously when moving to custom user models from an app with existing migration data. Personally I'd say get rid of the migration data for that specific model and re-initialize, it's just not worth trying to figure out why

Re: Where does django store auth migrations?

2014-11-09 Thread Daniel Roseman
On Sunday, 9 November 2014 13:40:12 UTC, Dr Ed wrote: > > Okay, I'm confused. I found it, in here: > /Users//.virtualenvs//lib/python2.7/site- > packages/django/contrib/auth/migrations > > Why are app related migrations being stored in this location? > > Cheers, > > Ed > What? Migrations

Re: Where does django store auth migrations?

2014-11-09 Thread Dr Ed
Okay, I'm confused. I found it, in here: /Users//.virtualenvs//lib/python2.7/site- packages/django/contrib/auth/migrations Why are app related migrations being stored in this location? Cheers, Ed On Friday, 7 November 2014 09:50:47 UTC+1, Dr Ed wrote: > > Hi all, > > I feel a bit

Re: Useing non-ascii character in django

2014-11-09 Thread Hossein Rashnoo
Writing my code with linux editor cause the problem,I wrote that with notepad and save it as 'utf8' and my problem solved. On Saturday, November 8, 2014 11:49:10 AM UTC+3:30, Hossein Rashnoo wrote: > > When i return Persian characters in view.py (same as Arabic characters) i > got an error , So

different urls

2014-11-09 Thread gerard
Hello all, i have an application (Django 1.4 LTS) that can be accessed with 2 urls: the default is https://my.app.org and the second is http://consult.my.app.org In the templates, i'm using: {% trans "Connect to see more features" %} and it's displayed as https://my.app.org/accounts/login if