Re: different language for admin/front-end

2012-08-12 Thread Gour
On Sun, 12 Aug 2012 17:33:27 +0200 Melvyn Sopacua wrote: > As you can see in the documentation [1], there's five methods by which > one can select the language once you've added LocaleMiddleware: Thank you very much. I was looking at docs, but, somehow, missed this info. However, I'm pleased to

回复: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Pengfei Xue
http://peng-fei-xue.blogspot.com/2012/06/howto-create-django-application-in.html check this post -- Sincerely, Pengfei Xue 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 已使用 Sparrow (http://www.sparrowmailapp.com/?sig) 在 2012年8月12日星期日,下午7:54,surya 写道: > I am really fed up with tut

Re: django-allauth and signup or login via twitter?

2012-08-12 Thread Amyth
It seems like there is a problem with your twitter app configuration, most probably the website url and the callback url. Make sure you are specifying the Urls in /etc/hosts on your local server and the consumer key and secret are correct. If you still face any problems, follow my step by step

Re: how to let user change the language

2012-08-12 Thread Marcin Tustin
So, what part, exactly is a problem? What have you tried? On Sun, Aug 12, 2012 at 6:52 PM, Gelonida N wrote: > On 08/12/2012 08:46 PM, Marcin Tustin wrote: > >> This is linked from the Django front page: >> https://docs.djangoproject.**com/en/1.4/topics/i18n/

Re: how to let user change the language

2012-08-12 Thread Gelonida N
On 08/12/2012 08:46 PM, Marcin Tustin wrote: This is linked from the Django front page: https://docs.djangoproject.com/en/1.4/topics/i18n/ Come back with specific questions when you get stuck. Thanks for your answer. I created already all the l18n messages and I can switch the language site

Re: Created & updated date/time in models

2012-08-12 Thread Lachlan Musicman
On Sun, Aug 12, 2012 at 12:06 PM, Melvyn Sopacua wrote: > On 8-8-2012 23:02, Lachlan Musicman wrote: > >> From what I can see, the admin interface already keeps this data for >> each object (exception: no create_date for data imported via fixtures >> apparently). > > Three options: > 1) Add the fi

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Cal Leeming [Simplicity Media Ltd]
It's more of a 'YMMV' thing - hence the "hands dirty" comment. On Sun, Aug 12, 2012 at 7:33 PM, Marcin Tustin wrote: > I thought the point of a tutorial was that if you followed it blindly, and > to the letter, it will work, and then you can pull it apart afterwards. > > > On Sun, Aug 12, 2012 at

Re: Django app to update site through email

2012-08-12 Thread Marwan Al-Sabbagh
Ah good old fetchmail. How did I forget you. Thanks Melvyn, It looks really really mature an full featured. As far as security and identifying the user I was planning to use Django's Cryptographic signingand to put a signed value contained the

Re: how to let user change the language

2012-08-12 Thread Marcin Tustin
This is linked from the Django front page: https://docs.djangoproject.com/en/1.4/topics/i18n/ Come back with specific questions when you get stuck. On Sun, Aug 12, 2012 at 1:10 PM, Gelonida N wrote: > > I'd like to have a web site, where the can switch the language > The first time the user con

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Marcin Tustin
I thought the point of a tutorial was that if you followed it blindly, and to the letter, it will work, and then you can pull it apart afterwards. On Sun, Aug 12, 2012 at 2:10 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > You can't blindly follow a deploy

Re: Issue Deploying Django

2012-08-12 Thread Kurtis Mullins
On Aug 11, 2012 6:31 PM, "Mario Lacunza" wrote: > > Dont forget ask to webfaction about it too before > you buy the package, you have root access in WF > and you can install whaterver you want I guess. Web faction gives root access now? > Anyways ask WF support. > > http://www.webfaction.com?aff

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Cal Leeming [Simplicity Media Ltd]
Sorry - hit send too fast. Once you've found the logs, you can then have a look around on Google for what the errors mean.. if you get stuck, you can send the exact error messages into the mailing list to see if anyone else knows what it means. On Sun, Aug 12, 2012 at 7:10 PM, Cal Leeming [Simpli

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Cal Leeming [Simplicity Media Ltd]
You can't blindly follow a deployment tutorial and expect to not have to get your hands dirty - especially when it's not even an official tutorial ;) First off - you need to find the error logs for your application and/or web server, and/or determine where the stack is breaking Cal On Sun, Aug 1

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread surya
Hi Cal, Actually, I have followed this tutorialfor deploying a basic Django app using Python 2.7 on Open Shift. So, when I pushed the repo, the website showed me.. Service Temporarily Unavailable The server is temporarily unable to servic

Re: Hosting tutorials

2012-08-12 Thread surya
HI Scott, Thanks for replying. Actually I have been on Heroku for some time. Its pretty good. However, I am looking for a PaaS which provides Database Hosting. Heroku does that but I need credit card to do use it. As OpenShift doesn't ask me such details and also provides good servers.. I thou

Re: Hosting tutorials

2012-08-12 Thread citadelgrad
I'd recommend you following heroku's step-by-step tutorialto get a test app working on Heroku then try to deploy your app. Heroku's documentation is good and you won't need to worry about setting up virtualenv. The Django book is out of date and so

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Cal Leeming [Simplicity Media Ltd]
Surya, Your original question does not really explain what problem you are having. >From what I can tell, you have read tutorials on the web that explain how to set up Django on OpenShift, but you have not explained what is wrong with them, nor what specific problem you are having. You'll need t

how to let user change the language

2012-08-12 Thread Gelonida N
I'd like to have a web site, where the can switch the language The first time the user connects the language would be the prefered language as sugegsted by the news agent, then the user could select the prefered lanngauge in some user preference settings. What would be the standard way to d

Re: how to organize models

2012-08-12 Thread Jojo
It works! Thank you very much! Il giorno sabato 11 agosto 2012 20:25:14 UTC+2, Alexis Roda ha scritto: > > Al 11/08/12 15:57, En/na Jojo ha escrit: > > Hi, I'm developing my first web application with Django. The model is > > growing up quite fast and I started to split the code in different fi

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Surya Kasturi
Haven't got any answer! So, I thought someone from Django users would be using it and might help. On Sun, Aug 12, 2012 at 7:33 PM, Mario Lacunza wrote: > Uhmm... Is not better ask the same to openshift support? > > Mario Lacunza > Enviado desde mi Motorola Atrix2 > El ago 12, 2012 6:55 a.m., "su

Re: different language for admin/front-end

2012-08-12 Thread Melvyn Sopacua
On 12-8-2012 15:53, Gour wrote: > what is the recommended way to set different language in Django admin > (e.g. English) than the one in front-end (e.g. native one)? As you can see in the documentation [1], there's five methods by which one can select the language once you've added LocaleMiddlewa

Re: using vars() function in django

2012-08-12 Thread Masklinn
On 2012-08-12, at 16:15 , rafiee.nima wrote: > Hi I need to to assign dynamic name to a variable I use blow code : > for item,value in request.POST.items(): > if item=="kid_room" >vars()[item]="ok" >list.append({"a":kid_room}) >data=simplejson.dumps(list,cls=DjangoJSON

using vars() function in django

2012-08-12 Thread rafiee.nima
Hi I need to to assign dynamic name to a variable I use blow code : for item,value in request.POST.items(): if item=="kid_room" vars()[item]="ok" list.append({"a":kid_room}) data=simplejson.dumps(list,cls=DjangoJSONEncoder) return HttpResponse(data, mimetype="a

Re: How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread Mario Lacunza
Uhmm... Is not better ask the same to openshift support? Mario Lacunza Enviado desde mi Motorola Atrix2 El ago 12, 2012 6:55 a.m., "surya" escribió: > I am really fed up with tutorials on web telling how to configure Django & > Python 2.7 on OpenShift DIY. > > So, can writ

different language for admin/front-end

2012-08-12 Thread Gour
Hello, what is the recommended way to set different language in Django admin (e.g. English) than the one in front-end (e.g. native one)? I see there are some snippets and/or middleware for it, but the posts are several years old and, considering I'm new to django-1,4; I wonder if there is some o

How to host Django 1.4 with Python 2.7 on OpenShift DIY

2012-08-12 Thread surya
I am really fed up with tutorials on web telling how to configure Django & Python 2.7 on OpenShift DIY. So, can write a detailed step-by-step procedure on *how to setup Django 1.4 with Python 2.7 on OpenShift using VirtualEnv*?? Thanks a lot!! -- You received this messa

Re: Hosting tutorials

2012-08-12 Thread surya
Hey, As you said that you were using Django on Open Shift.. Can you tell me how to configure Django 1.4 and Python 2.7 on openshift DIY with virtualenv?? I tried almost every tutorial on web and fed up with them. I don't know why but I just run into errors.. So, could you please write a detai

Re: custom management commands: AttributeError: 'module' object has no attribute 'Command'

2012-08-12 Thread Melvyn Sopacua
On 11-8-2012 2:14, Matthew Meyer wrote: > The command I am running is : > > $ python manage.py event_expiration > > I've made sure I am adding the event_expiration.py file within management > and commands folders and that those folders have init files. those are in > one of my app folders. >

Re: Django app to update site through email

2012-08-12 Thread Melvyn Sopacua
On 10-8-2012 17:23, Paul Backhouse wrote: > Has this already been done? Does my google-fu escape me? If it hasn't > already been done, why not? And are there any modules out there that can > be dropped in to speed development? Any tips on developing this app? An email gateway is what exposed cont

Re: Django app to update site through email

2012-08-12 Thread Melvyn Sopacua
On 12-8-2012 8:15, Marwan Al-Sabbagh wrote: > thats interesting. I was gonna use python's imaplib to periodically check > an email's inbox using IMAP, and run an action whenever new emails are > discovered. We are running MS Exchange as our email server so I needed > something more generic that wou