Re: Django hosting

2014-09-24 Thread Sabine Maennel
Thank you very much for your advice Marc, it is very valuable to me, especially the part that my hosting provider for today does not need to be that of the future. My problem right now is that I am under pressure to launch, but just in order to open up registration for a class that won't start

Re: Django hosting

2014-09-24 Thread Mark Phillips
Sabine, I am in the US, so take my advice with a large grain of salt. I usually use Linode and Digital Ocean as a benchmarks for hosting services. There prices are very reasonable and they give you all that you need - root shell access to your own private virtual server. They have great up-time, a

Re: I have several models throwing this error: "AppRegistryNotReady: Models aren't loaded yet."

2014-09-24 Thread Sabine Maennel
Thank you so much for these very helpful links to the documentation, Russell! Am Donnerstag, 25. September 2014 01:48:52 UTC+2 schrieb Russell Keith-Magee: > > Hi Sabine, > > Yes, this error is related to 1.7; no, it's not related to migrations. > It's related to the App Loading refactor: > > h

Re: Upgrading Django (to 1.7)

2014-09-24 Thread Sabine Maennel
Dear Andrew, I read your article and it is great. I am really looking forward to your followups. I was hoping for something like this went I attended Django Con Europe. I struggle with the understanding the migrations the most. Usually in the early phases of development I do not want migration

Re: trying to load a view

2014-09-24 Thread dk
> > thanks now when i go to the website > http://127.0.0.1:8000/hello/ does work, so the include work for including the urls file inside the applications? and if i go to http://127.0.0.1:8000/ i get the 404 error Page not found (404)Request Method:GETRequest URL:http://127.0.0.1:8000/

Django hosting

2014-09-24 Thread Sabine Maennel
I live in Switzerland and I will launch my startup shortly. It will be a very small platform in the beginning but traffic might grow all of a sudden. So regarding to hosting I am torn right now, between Pyrox, which is a small, but accessible Germ hoster and Django Europe, which is spezialized

Upgrading Django (to 1.7)

2014-09-24 Thread Andrew Pinkham
Hi, I am writing a series of articles based on the presentation I gave at DjangoCon US 2014. I put the first article online earlier today, and figured members of this list might be interested in the material. For all of the material: afrg.co/updj17/ For the article: afrg.co/updj17/a1/

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Adam Stein
On Wed, 2014-09-24 at 14:30 -0700, John Schmitt wrote: > I appreciate what you said about deploying and not editing "live" files > directly. Hope the information is of use to you. > However, I have several projects in various stages of development and when I > first start a project, I don't h

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Russell Keith-Magee
Hi Sabine, No - you don't put it in your settings file; the settings file is loaded as part of the setup call. As a completely manual process, you can just run the following: import django django.setup() as the first two commands in your Python shell. If PyCharm has any hooks you can tie into f

Re: I have several models throwing this error: "AppRegistryNotReady: Models aren't loaded yet."

2014-09-24 Thread Russell Keith-Magee
Hi Sabine, Yes, this error is related to 1.7; no, it's not related to migrations. It's related to the App Loading refactor: https://docs.djangoproject.com/en/1.7/releases/1.7/#app-loading-refactor The error is caused because you're interacting with Django models before all the models are known t

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Fred Stluka
Excellent! Thanks! Now I can just point my team at it, instead of writing out the details myself. --Fred Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/ Bristle Software, Inc -- http://bristle.com -- Gl

Re: Correctly passing parameters to raw query

2014-09-24 Thread James Brewer
Also, it is worth mentioning that the RawQuerySet object looks to have been refactored in the latest development release. I have not verified this issue on the development branch. On Wed, Sep 24, 2014 at 3:53 PM, James Brewer wrote: > This is going to depend on the version of Django you're using

Re: Correctly passing parameters to raw query

2014-09-24 Thread James Brewer
This is going to depend on the version of Django you're using. Accord to the docs for 1.7[1], this should work fine. After playing around in the shell for a bit, I found I was getting an error complaining about arguments not being converted during string formatting. It seems the problem occurs whe

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Javier Guerra Giraldez
On Wed, Sep 24, 2014 at 4:58 PM, John Schmitt wrote: > I put my projects in virtualenvs which are in my VMs. It's not like one VM > can only host one project. > > Is that what you mean? not exactly. if you're using virtualenv, you can directly run the project in your workstation, no need to cr

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
On Wed, Sep 24, 2014 at 04:33:35PM -0500, Javier Guerra Giraldez wrote: > On Wed, Sep 24, 2014 at 4:30 PM, John Schmitt wrote: > > When I'm creating a dummy project to test my apache configuration and/or my > > management commands, or trying to assemble a complicated query, I do it > > "live" on

Re: Correctly passing parameters to raw query

2014-09-24 Thread Collin Anderson
Interesting. I don't use raw queries, but I wonder if Django doesn't support lists as parameters to raw() -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Javier Guerra Giraldez
On Wed, Sep 24, 2014 at 4:30 PM, John Schmitt wrote: > When I'm creating a dummy project to test my apache configuration and/or my > management commands, or trying to assemble a complicated query, I do it > "live" on the VM on which I created the playground project. why bother with VMs when we

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
On Wed, Sep 24, 2014 at 03:43:23PM -0400, Adam Stein wrote: > On Wed, 2014-09-24 at 12:03 -0700, John Schmitt wrote: > > > On Wed, Sep 24, 2014 at 07:40:51AM -0400, Adam Stein wrote: > > > Not sure what you are looking for in terms of Django template support. > > > The only difference between pych

Re: Django templating system.

2014-09-24 Thread Collin Anderson
what happens when you try? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Collin Anderson
Here's the blog post, by popular demand :) http://collincode.wordpress.com/2014/09/24/jquery-ui-popup-with-django-backend/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Collin Anderson
I think you only included the "jquery" script code. You need to include both jquery and jqueryui. I'll work on the blog post. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, sen

Correctly passing parameters to raw query

2014-09-24 Thread termopro
Hello, I am constructing raw query which looks like the following: "SELECT * FROM some_table WHERE id IN (1,3,5);" So inside my view i write: entities = Entity.objects.raw(""" SELECT * FROM some_table WHERE id IN (%s); """, [ids_list]) How should i correctly pass the argument ? Because i keep

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Adam Stein
On Wed, 2014-09-24 at 12:03 -0700, John Schmitt wrote: > On Wed, Sep 24, 2014 at 07:40:51AM -0400, Adam Stein wrote: > > Not sure what you are looking for in terms of Django template support. > > The only difference between pycharm community (free) and commercial in > > terms of Django support tha

syncdb error with Mysql database on Windows 7

2014-09-24 Thread Daniel Grace
I have a virtualenv with Python 3.4, Django 1.7 and MySQL installed on Windows 7. I also have the MySQL / Python adapter installed and the database settings in settings.py: DATABASES = { 'default': { 'NAME': 'mydb', 'ENGINE': 'mysql.connector.django', 'USER': 'root',

Django templating system.

2014-09-24 Thread Misbaw Abdulai
I want some someone to help me with showing posts based on category on the index page using django template. I tried this code {% load blog %} {% get_blog_categories as categories %} {% for c in categories %}

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread John Schmitt
On Wed, Sep 24, 2014 at 07:40:51AM -0400, Adam Stein wrote: > Not sure what you are looking for in terms of Django template support. > The only difference between pycharm community (free) and commercial in > terms of Django support that I've noticed is that Django's development > web server won't r

Re: Lightening talk ideas for a (relative) beginner?

2014-09-24 Thread James Brewer
Fred, that's a lot of notes. I'm at work right now, but I will definitely look over them tonight. You're the man. Thanks! Happy hacking, James On Wed, Sep 24, 2014 at 11:34 AM, Fred Stluka wrote: > James, > > Unit testing would be a good lightning talk. Here are some notes > from the session

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Thu, Sep 25, 2014 at 12:10 AM, Jan Eskilsson wrote: > "Uncaught TypeError: Undef is not a function" error in the Java Script, dont > understand why really ? Yes, I get the same in Chromium (y) ​,​ but only after reopening, as I mentioned in my previous mail. -- Ka

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 11:17 PM, Fred Stluka wrote: > > Excellent sample. Thanks! That's a nice standalone summary > of how to do a popup dialog via jQuery and Ajax. Worth posting > to a tips page or blog if you have such, so other people can > Google it. @ Collin, please do the above now ;)

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Jan Eskilsson
Sorry for budging in but for me this works $("#dialog-form").html(data) rather than load(data) but I get a "Uncaught TypeError: Undef is not a function" error in the Java Script, dont understand why really ? Thank You in Advance Jan Eskilsson 2014-09-24 22:05 GMT+04:00 Collin Anderson : > Inter

Re: Lightening talk ideas for a (relative) beginner?

2014-09-24 Thread Fred Stluka
James, Unit testing would be a good lightning talk. Here are some notes from the session where I recently trained my team on it. You may want to update some of the links. We're still on Django 1.4. - Online docs: - http://bristle.com/~fred/#django - https://docs.djangoprojec

heroku django staticfiles

2014-09-24 Thread Eddilbert Macharia
Hello. I have a django app on heroku, the first time i git push , static files work perfectly. But any subsequent pushes break the staticfiles. I get "Oserr:no such folder or file on app/{ myappname }/static". Whats the issue ?? I have followed the django heroku getting started especillay fo

Lightening talk ideas for a (relative) beginner?

2014-09-24 Thread James Brewer
I want to attend a Django BarCamp in SF next weekend and BarCamp tradition is that everyone contribute in some way. Of course I will help out with set up/break down if that is needed, but I would also like to give a lightening talk. I'm fairly unfamiliar with Django at this point and I've never

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Collin Anderson
Interesting. Maybe it should be $("#dialog-form").html(data) rather than load(data) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@goo

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread James Bennett
On Wed, Sep 24, 2014 at 7:17 AM, Bill Freeman wrote: > I just use emacs. > I use Emacs as well. It's been my everyday code editor for nearly 15 years, and works with/on almost anything. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsub

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Mark Phillips
Gedit works well with syntax highlighting. I like the console widow in the bottom pain to restart the server when needed, see error messages, etc. Don't have to go to another terminal window. http://www.micahcarrick.com/gedit-as-a-django-ide-for-linux.html Mark On Wed, Sep 24, 2014 at 10:24 AM,

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Wellington Cordeiro
Use Atom if you want a Sublime like editor that's open source, free and extendable. https://atom.io/ -Wellington Cordeiro On Wed, Sep 24, 2014 at 11:08 AM, anton wrote: > Wellington Cordeiro wrote: > > > If you're doing serious development $70 for a very extensible editor is > > I know this ve

Re: Unable to delete cookie

2014-09-24 Thread Daniel Rus Morales
Your code looks good. It seems to me you might have some middleware in your project, from the external authentication, that places the cookie. Think that the response in your view still have to pass through the middleware in its way out to the browser. Just guessing. On 24 Sep 2014, at 16:40,

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread anton
Wellington Cordeiro wrote: > If you're doing serious development $70 for a very extensible editor is I know this very well, but with my question I wanted to find out if there is an open source solution. Anton > chump change. IDE's are in my opinion too much for Django and rarely do > all the th

Multiple databases and admin list_filter

2014-09-24 Thread Pam Suebvisai
Hi, I'm trying to use multiple databases with the admin interface by separating the 2 databases to 2 admin sites following the example at https://docs.djangoproject.com/en/1.7/topics/db/multi-db/#exposing-multiple-databases-in-django-s-admin-interface. However, when I add list_filter into the

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread anton
Adam Stein wrote: > Not sure what you are looking for in terms of Django template support. I mean for example: syntax highlighting of the django template keywords. > The only difference between pycharm community (free) and commercial in > terms of Django support that I've noticed is that Django

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Wellington Cordeiro
If you're doing serious development $70 for a very extensible editor is chump change. IDE's are in my opinion too much for Django and rarely do all the things you wish they would. If paying isn't for you, I would get Vim or Emacs. On Wednesday, September 24, 2014 3:47:47 AM UTC-6, anton wrote:

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 6:14 PM, Collin Anderson wrote: > # popupadvance.html > Here's the worker object: {{ worker }} > src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"> > > Advance > What I see is that I need to write the contents to be shown, in the dialog, inside t

Re: migrate command fails when changing foreign key to a different model

2014-09-24 Thread Shawn H
I've upgraded to the 1.7 release version, and I'm still having this issue. While I can (and for my testing purposes have) manually change the database structure and update the foreign keys to point to the correct row in the new table, that kind of defeats the purpose of migrations. I understand

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Sabine Maennel
I am using Pycharm and I did declare my project as a Django project. So how can call django.setup()? Do I do that in my settings-file? On Wed, Sep 24, 2014 at 4:38 PM, Collin Anderson wrote: > Are you using a plain python shell or ./manage.py shell? If you are using > a plain python shell, you

Re: Model Translate.

2014-09-24 Thread uvetter
Depends on the Django version and the Python version you are using. Did you have a look at this page? https://www.djangopackages.com/grids/g/model-translation/ I am currently using "Django-Modeltranslation", which is easy to use (Python 3.3 and Django 1.6). Best regards Am Mittwoch, 24. Sept

problem with django daj pagination

2014-09-24 Thread Артём Мутерко
I'm trying to set up dajax pagination in py app. The problem is when I add import dajaxwebsite.examples.views to views.py My css stop working. Maybe I should use another ajax pagination plugin? like endless-pagination -- You received this message because you are subscribed to the Google Groups

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Wed, Sep 24, 2014 at 8:01 PM, Collin Anderson wrote: > Hmm... it seems to be trying to parse your html as javascript. Try using > adding to your $.ajax(): > > dataType: 'text', Nothing happened. -- Kamaljeet Kaur kamalkaur188.wordpress.com -- You received this message because you are subsc

Re: Unable to delete cookie

2014-09-24 Thread Tao Bror Bojlén
Everything's https, and it's the same path. Here's the cookie before going to the logout view, and the cookie header of that view: http://imgur.com/a/idlVT As far as I can tell, they match, but the cookie isn't changed at all. On 24/09/2014 15:33, Collin Anderson wrote: > Could it be different p

Re: About compilemessages error.

2014-09-24 Thread Collin Anderson
It looks like the end of the traceback got cut off. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this gr

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Collin Anderson
Are you using a plain python shell or ./manage.py shell? If you are using a plain python shell, you must call django.setup() first. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it

Re: Unable to delete cookie

2014-09-24 Thread Collin Anderson
Could it be different paths or something? Or http vs https? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Collin Anderson
Hmm... it seems to be trying to parse your html as javascript. Try using adding to your $.ajax(): dataType: 'text', -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

About compilemessages error.

2014-09-24 Thread Tsolmon Narantsogt
When i ./manage.py compilemessages i got error. Pls help me . What is the reason ? File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 399, in execute_from_command_line utility.execute() File "C:\Python27\lib\site-packages\django\core\management\__init__.py", li

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Bill Freeman
I just use emacs. One of the original open source tools. Template syntax support requires a plugin, and I might try one some day, but html mode has been satisfying so far. Also, since I know how to type, running my own management commands in an emacs shell window works for me. This sort of magi

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Sabine Maennel
Thank you Tom, that was very helpful. It all works if I throw these unicode representations out. I do have 'django.contrib.auth' installed. I can play around with what representations to use now. But from the error message I would not have guessed that it had this reason. So again thanks very

Model Translate.

2014-09-24 Thread Tsolmon Narantsogt
Hello folks. Im new in Django. Please suggest me which app is suitable models translation. I developing multilanguage site. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from i

Re: AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Tom Evans
On Wed, Sep 24, 2014 at 1:12 PM, Sabine Maennel wrote: > Hello, please help! > > Some of my models throw this error, when I query them with object.all(). > They coexist in apps that have other models that are just fine. I do not > understand at all what the problem might be and could not google it

AppRegistryNotReady: Models aren't loaded yet.

2014-09-24 Thread Sabine Maennel
Hello, please help! Some of my models throw this error, when I query them with object.all(). They coexist in apps that have other models that are just fine. I do not understand at all what the problem might be and could not google it. For example: this would be my models.py in the app "account

I have several models throwing this error: "AppRegistryNotReady: Models aren't loaded yet."

2014-09-24 Thread Sabine Maennel
Mostly it is models in the same app: one is fine and the other one throws this error, when I call them from my shell: I start my shell and run x=.objects.all() which runs fine, but then when I want to show x by: print x the error occurs. I really do not know what it means, googling it d

Re: Unable to delete cookie

2014-09-24 Thread Tao Bojlen
No, in order to log out they just ask that you delete the cookie and redirect to their logout page. The domain of the cookie is the domain of my site, not the external authentication service. Could there still be same-origin issues? Thanks, Tao On Wednesday, September 24, 2014 10:07:26 AM UTC+

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Adam Stein
Not sure what you are looking for in terms of Django template support. The only difference between pycharm community (free) and commercial in terms of Django support that I've noticed is that Django's development web server won't restart automatically when code changes in the community edition. Ha

Re: request.META['REMOTE_USER'] with django runserver

2014-09-24 Thread Tom Evans
On Mon, Sep 22, 2014 at 5:36 PM, Robbie Edwards wrote: > Hi, > > On my production server, I'm using REMOTE_USER to provide SSO for an > internal service. It works great on the production server. However, when > running 'runserver' on the development side, this variable is not set so > authentica

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread anton
Jorge Andrés Vergara Ebratt wrote: > I actually use a text editor, I love Sublime Text 2 with the Djaneiro > Plugin. > hmm this is shareware not opensource as I see :-( > As far as IDEs go, I used to work with NINJA IDE, it's a Python IDE and > it's pretty cool. > I will have a look ... but I

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Jorge Andrés Vergara Ebratt
I actually use a text editor, I love Sublime Text 2 with the Djaneiro Plugin. As far as IDEs go, I used to work with NINJA IDE, it's a Python IDE and it's pretty cool. 2014-09-24 4:36 GMT-05:00 anton : > Hi, > > actually I use Aptana Studio 3.4.1 (http://www.aptana.com/) > to develop Django apps

What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread anton
Hi, actually I use Aptana Studio 3.4.1 (http://www.aptana.com/) to develop Django apps (on Windows and Linux). What I (personally) need from an ide: 1. ability to debug (python code) 2. support for django templates 3. support for django (start a new project, adding a django app) 4. support fo

Re: Unable to delete cookie

2014-09-24 Thread Daniel Rus Morales
It sounds like you have a same-origin policy issue. If the external authentication site and your site have different origins you can’t delete their cookies with your responses. Does not the external authentication site provide you with a method to logout? On 23 Sep 2014, at 19:09, Tao Bojlen w

Re: Open Django template in dialog box (not in window)

2014-09-24 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 11:17 PM, Fred Stluka wrote: > Kamal, does this fill in the gaps for you? If not, let us know. I've used this example in my app and getting this, in Firefox console, on clicking the link: http://pastie.org/9590027 Here is what I get as output: http://awesomescreenshot.co

Re: Confused by STATICFILES_DIRS not working

2014-09-24 Thread Thabang Bernette Tseboho
Yes, it's very odd. The only thing that fixes it is setting STATIC_URL="static/" instead if "/static/" On 23 Sep 2014 8:47 PM, "Collin Anderson" wrote: > So it works fine in production, when DEBUG = False, but not on your local > runserver when DEBUG = True? > > -- > You received this message bec