Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Lachlan Musicman
Did you run python manage.py collectstatic ? cheers L. On 12 September 2014 11:11, Michael A. Martin wrote: > It seems like when I take all the CSS and JS the html renders with images. > But this site rendered with a previous version. I pretty much ruined this > dev

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael A. Martin
It seems like when I take all the CSS and JS the html renders with images. But this site rendered with a previous version. I pretty much ruined this dev project today trying to figure it out. I don't know why this worked on the older version but not this version. > On Sep 11, 2014, at 9:38

Re: Three Django forms in different tabs in one template?

2014-09-11 Thread Mario Gudelj
K. Another option would be to render all the forms in GET and then use Ajax and 3 different views to process POST requests from those forms. Or you can add different values to each of the form's submit button and check which form form is being submitted by that value. That's if you want to use

Re: How to allow editing m2m relationship with nice widget on both models in admin interface?

2014-09-11 Thread Daniel Oźminkowski
Thanks. I saw it, but thought that there would be a better way to do this. because this was asked 2 years ago. I'll give it a tree. What do you think about splitting models that depend on each another into separate apps? Is that the right thing to do? W dniu środa, 10 września 2014 15:37:15

Re: Three Django forms in different tabs in one template?

2014-09-11 Thread Andrew Pinkham
Hi Franco, Faridul, Stodge, There are actually quite a few problems being asked. I've split them up into discrete questions. 1. Can a single view function print three forms in a template? Yes. WARNING: I am coding all of this off the top of my head. The code is likely riddled with typos and

Re: Excel Sorting

2014-09-11 Thread Gregory Strydom
Thanks very much for the help! Those look exactly like what im looking for :) I will start on them once im back at work tomorrow. On Thu, Sep 11, 2014 at 3:39 PM, François Schiettecatte < fschietteca...@gmail.com> wrote: > You have three ways you can do this: > > - In the browser with

What is this "l" folder when running makemessages/compilemessages?

2014-09-11 Thread Malte Beckmann
When running those commands: $ django-admin.py makemessages --all $ django-admin.py compilemessages A "l" folder is generated (/var/django/jnj/jnj/locale/l/LC_MESSAGES) - what does that l folder contain? The base locale from which everything is translated? -- You received this message because

Re: Excel Sorting

2014-09-11 Thread James Schneider
Also check out django-tables2, which includes the sorting magic you are looking for. It uses the third option that François outlined below. http://django-tables2.readthedocs.org/en/latest/ -James On Thursday, September 11, 2014, François Schiettecatte < fschietteca...@gmail.com> wrote: > You

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Collin Anderson
What happens if you go directly to the url of one of your static files? Also, please don't post your SECRET_KEY. -- 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

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael Martin
Here is an example of a template that use to work. {% load static %} Launch with Code Hello, world! This is a template for a simple marketing or informational

Re: Django 1.5.1 - Mysql - Setting

2014-09-11 Thread Fred Stluka
Ahmed, For connecting Django to MySQL, I use MySQL-python, installed via pip as: pip install MySQL-python My settings file contains: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME' : 'name of our database', 'USER' :

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael Martin
I just sent my settings, but as you can see I have debug turned on and django.contrib.staticfiles in the installed apps. Someone please help me, I can't do any development like this. On Thu, Sep 11, 2014 at 9:29 AM, Michael Martin wrote: > """ > Django settings for

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Michael Martin
""" Django settings for lwc project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ # Build paths inside the project like this:

Re: Django admin list sort error

2014-09-11 Thread Collin Anderson
Yes, it does sound like a bug. Can you reproduce it with a minimal project? -- 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

Re: Issue with models.FilePathField in Django 1.7 Admin?

2014-09-11 Thread Collin Anderson
try checking os.listdir(settings.BASE_SFTP_DIRECTORY) to see if python can actually see your files. -- 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

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Collin Anderson
and do you have the "staticfiles" app in your INSTALLED_APPS? -- 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

Re: Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Collin Anderson
Do you have DEBUG = True? -- 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

Re: Long-running process using Django ORM maxes out psql connections

2014-09-11 Thread Paco de Kumite
> > This may not be the cleanest, but it works: > First make a decorator, like this: import django.db from functools import wraps def close_dbconn(func): @wraps(func) def close_dbconn_func(*args, **kwargs): func(*args,**kwargs) django.db.close_old_connections() return close_dbconn_func Then

Django 1.7 has issues rendering pages on laptop

2014-09-11 Thread Pitchblack
Hello, I have installed Debian 7, Jython 2.7b3 and Django 1.7. After installing everything, I ran jython manage.py runserver. If I have css files and js files referenced in the html, the pages don't render. But the pages use to render in the older version of Django. Does anyone have any

Re: Three Django forms in different tabs in one template?

2014-09-11 Thread Franco H
Hi im from Argentina im in the same situation, do u find a answer? can u shared it with me? On Thursday, October 24, 2013 3:56:29 PM UTC-3, Faridul Islam wrote: > > Hello Stodge, > > I was searching for an example of mutli-tab pages within a single view > using Django and found your post

Long-running process using Django ORM maxes out psql connections

2014-09-11 Thread Paco de Kumite
Hello. I have a standalone script that is long-running (i.e is supposed to run in a loop forever). This script uses the Django ORM for work on a database. For example, every two seconds it does a MyModel.objects.all(). Works awesome, but after a while I get OperationalError: FATAL:

Re: Excel Sorting

2014-09-11 Thread François Schiettecatte
You have three ways you can do this: - In the browser with Javascript, with all the data stored in the page (as a javascript array). - In the browser with Javascript and a REST call to Django to get the data (in JSON for example). - With a url that reloads the page with different parameters

Django 1.5.1 - Mysql - Setting

2014-09-11 Thread Muhammad Ahmed
Hi, I have been trying to launch my Django Model using a tutorial. but unfortunately the tutorial is about Django 1.1. Kindly guide me that what configuration (in setting.py) will be required if I use Python27 / Django 1.5.1 with Mysql. please also guide towards the appropriate "MySql

Re: Excel Sorting

2014-09-11 Thread Gregory Strydom
Sorry i forgot to mention the filtering/sorting should be done in the view so the user can simply click on a button and sort by date, category etc -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Excel Sorting

2014-09-11 Thread Gregory Strydom
Sorry i forgot to mention the filtering should be done while viewing the template so the user can simple choose sort by date, category etc on the fly. On Thursday, 11 September 2014 15:29:21 UTC+2, Gregory Strydom wrote: > > Hey all. > > I am just curious, is there any to do Excel style

Excel Sorting

2014-09-11 Thread Gregory Strydom
Hey all. I am just curious, is there any to do Excel style filtering in Django? Eg: Sort by date , category etc The closest thing i have seen which resembles something like that is dictsort() or regroup(), but i have no idea how that would work for what i want. The only other option i could

Re: heroku django

2014-09-11 Thread ngangsia akumbo
Thanks very much bro can we meet online my skype ngangsi.richard On Thursday, September 11, 2014 1:21:06 PM UTC+1, Kevin Ndung'u wrote: > > Yes, you can. You can develop locally then when the time comes to deploy > it then add it to Github and subsequently to Heroku. > > I personally prefer

Re: heroku django

2014-09-11 Thread Kevin Ndung'u
There is really no difference when you add it to Github or Heroku, in my opinion. Achieves the same result in the end. On Thursday, September 11, 2014 11:42:12 AM UTC+3, ngangsia akumbo wrote: > > or should i create my app locally add it on git hub and clone it on heroku > if that is a better

Re: heroku django

2014-09-11 Thread Kevin Ndung'u
Yes, you can. You can develop locally then when the time comes to deploy it then add it to Github and subsequently to Heroku. I personally prefer this since you get to focus on the app first and deploy later. On Thursday, September 11, 2014 11:29:39 AM UTC+3, ngangsia akumbo wrote: > > i have

Re: heroku django

2014-09-11 Thread ngangsia akumbo
or should i create my app locally add it on git hub and clone it on heroku if that is a better process please can some one guide me through? On Thursday, September 11, 2014 9:29:39 AM UTC+1, ngangsia akumbo wrote: > > i have a problem > can i create a complete django application on my machine

heroku django

2014-09-11 Thread ngangsia akumbo
i have a problem can i create a complete django application on my machine before deplying it to heroku that is i start by creating the django app on my local linux machine before trying to deploy it online i a confused here a bit pleas i need some help -- You received this message because you

Re: models get_absolute_url issue

2014-09-11 Thread Eddilbert Macharia
Hello andrew, Thank you for the reply, found where my problem was on my url.py i had done this url(r'^resource/(?P)', ResourceDetailView.as_view(), > name='resource_detail'), > instead of this > url(r'^resource/(?P\d+)', ResourceDetailView.as_view(), > name='resource_detail'), > i was

Re: models get_absolute_url issue

2014-09-11 Thread Andrew Pinkham
Hi Eddilbert, What are the URL patterns for the two views? I suspect a problem with `pk_url_kwarg`, but I am surprised by the error output. If that is not the problem: Does this error occur if you do not override the `form_class` of `ResourceCreateView`? Could you supply the code for