Re: Serving static files from another directory rather than "statics"

2014-07-07 Thread Chen Xu
django-pipline looks good for me at first, and then I realize it copies both the minified files and the original files (which I dont want). That is why I wrote my own scripts. Thanks On Mon, Jul 7, 2014 at 10:35 PM, carlos wrote: > Hi, maybe you need use this third party solution > http://dja

Re: Django newbie issues

2014-07-07 Thread Lachlan Musicman
If they aren't in settings, then the software would never have worked (if it needed a DB) :) You can just open settings.py with a text editor - notepad, wordpad, gedit, emacs/vim, even word if you want. It's just a text file. Cheers L. On 8 July 2014 14:05, Janelle O'Dea wrote: > Again, super h

Re: SWFL Django users

2014-07-07 Thread Russell Keith-Magee
Hi, In case you (or anyone else) didn't know about it, people.djangoproject.com maintains an index of people who declare themselves as Django developers. https://people.djangoproject.com/us/ If you zoom in on the US: https://people.djangoproject.com/us/ There's a few people in Florida. Yours,

Re: Python 3 Usage

2014-07-07 Thread Elena Williams
Hi Richard, Django has fully supported Python 3 for a while now, see this talk: http://pyvideo.org/video/2242/porting-django-apps-to-python-3-0 Also IMHO it's less a matter of which users use Python 3 (I'd say it's likely most serious Python users mix-and-match on a project-to-project basis, depe

SWFL Django users

2014-07-07 Thread Janelle O'Dea
Anybody in Southwest Florida who uses Django? -- 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,

Re: Django newbie issues

2014-07-07 Thread Janelle O'Dea
Again, super helpful. I just have a few more (hopefully not terribly obvious) questions: this mechanism specified in settings.py; will I access settings.py the same way as manage.py? python settings.py runserver? If I find the credentials for the database (if they aren't in settings.py, I proba

Re: Serving static files from another directory rather than "statics"

2014-07-07 Thread carlos
Hi, maybe you need use this third party solution http://django-compressor.readthedocs.org/en/latest/ and other is https://django-pipeline.readthedocs.org/en/latest/ Cheers On Mon, Jul 7, 2014 at 5:58 PM, Chen Xu wrote: > Hi Everyone, > I am working on a site, under my project in my local envi

Re: Python 3 Usage

2014-07-07 Thread Timothy W. Cook
I've been using Python 3 with Django for about 8 months. No real problems. Early on I had to patch a couple of add-ons. On Mon, Jul 7, 2014 at 9:10 PM, Richard Eng wrote: > I was wondering how many Django users have switched to Python 3. Are the > majority of users still on Python 2? I'm loo

Python 3 Usage

2014-07-07 Thread Richard Eng
I was wondering how many Django users have switched to Python 3. Are the majority of users still on Python 2? I'm looking for rough proportion/percentage. I also read that Django and Python 3 have some problems or issues. Is there any truth to this? Thanks. -- You received this message becau

Re: Mysql connections after started django app

2014-07-07 Thread Zemian Deng
FYI: I found the conn leak is due to the mysql-connector-python. I started a post here if anyone is interested: http://forums.mysql.com/read.php?50,616862,616862#msg-616862 On Friday, July 4, 2014 4:08:40 PM UTC-4, François Schiettecatte wrote: > > Hi > > Again I think there is a bug somewhere

Serving static files from another directory rather than "statics"

2014-07-07 Thread Chen Xu
Hi Everyone, I am working on a site, under my project in my local environment, I have a directory called "static" (generated by django just like everyone else's) to server my js and css. I wrote a script which minify all the js and css files and copy them in a directory called "static_min" which is

Re: Application Generators Comparison and Benefits list

2014-07-07 Thread Dean
No time for that, too busy... tortured and overwhelmed! :-/ On Tuesday, July 8, 2014 5:32:58 AM UTC+8, Dan Cancro wrote: > > Hi group, > > I made this comparison of things for starting a web application with > AngularJS and thought I would check here to see if a similar analysis had > taken plac

Re: Internal Request to third party inside a users request.

2014-07-07 Thread Russell Keith-Magee
On Tue, Jul 8, 2014 at 7:18 AM, James P wrote: > I have a situation where I want to make a third party request INSIDE a > current users request. > > Essentially I want to alter the traditional oauth2 flow where the user is > redirected back to the Application after authorizing their credentials f

Re: Django newbie issues

2014-07-07 Thread Mike Dewhirst
On 8/07/2014 2:22 AM, Janelle O'Dea wrote: Thank you, Mike. I haven't tried your first option yet, but I will either today or tomorrow. What kinds of clues would I look for in settings? Django needs credentials to access the database and there should be a mechanism specified in settings to get

Internal Request to third party inside a users request.

2014-07-07 Thread James P
I have a situation where I want to make a third party request INSIDE a current users request. Essentially I want to alter the traditional oauth2 flow where the user is redirected back to the Application after authorizing their credentials for the first time. I would like the Application to rece

Application Generators Comparison and Benefits list

2014-07-07 Thread Dan Cancro
Hi group, I made this comparison of things for starting a web application with AngularJS and thought I would check here to see if a similar analysis had taken place for Django application generators. http://dancancro.com/comparison-of-angularjs-application-starters/ My goal is to clarify the s

Re: settings.configure() does not allow me to access custom variables in settings.py

2014-07-07 Thread Bill Freeman
I don't know how fussy about not using stuff from django you are, but the following works for me: $ DJANGO_SETTINGS_MODULE=foo.ct python >>> from django.conf import settings >>> settings.INSTALLED_APPS Obviously, you replace "foo" with the name of your project. This prints my installed app

Re: Beginning with a feature flag system

2014-07-07 Thread sk
Hello George, Thank you. I was going through the documentation sometime back. Do you know if there is an "Hello World" example that uses Django waffle? I am not able to determine what changes need to be done to make a simple django project work. Regards, spk265 On Monday, July 7, 2014 4:19:4

Re: Beginning with a feature flag system

2014-07-07 Thread George Silva
Django Waffle is very good. On Mon, Jul 7, 2014 at 5:07 PM, sk wrote: > Hello All, > > I would like to try out one of the feature flag libraries available for > Django. So far I have come across Gargoyle - a feature flag library and > cannot wrap my head around as to how it should be implemente

Beginning with a feature flag system

2014-07-07 Thread sk
Hello All, I would like to try out one of the feature flag libraries available for Django. So far I have come across Gargoyle - a feature flag library and cannot wrap my head around as to how it should be implemented. Does anyone know of any tutorial or can guide me how to go about it? If ther

geo data fixture with loaddata, YAML

2014-07-07 Thread Ben Dean
Hi, I wanted to cross post this here from the original on the geodjango group. I let the details stand there, but summarize here: Trying to use manage.py loaddata to get a YAML fixture containing a geoDjango "MultiPolygonField",

Re: Django newbie issues

2014-07-07 Thread Janelle O'Dea
Thank you, Mike. I haven't tried your first option yet, but I will either today or tomorrow. What kinds of clues would I look for in settings? Also: any ideas about my first question? Everyone: I'm in Naples, Florida. If anyone is in the Southwest Florida area and wants to try and help, I'll ge

Re: django beginner

2014-07-07 Thread monoBOT
is the __init__.py file in the directory? 2014-07-07 15:13 GMT+01:00 ngangsia akumbo : > yes i added it to installed app > > On Monday, July 7, 2014 2:48:17 PM UTC+1, Javier Guerra wrote: > >> On Mon, Jul 7, 2014 at 8:17 AM, ngangsia akumbo >> wrote: >> > But i have just created a separate app

Re: Django 1.6 + Mysql

2014-07-07 Thread Carlos Arturo Sanchez Rivera
Check this tw: https://twitter.com/iscenigmax/status/485657005567115264 El sábado, 5 de julio de 2014 19:03:56 UTC-5, Henrique Oliveira escribió: > > hi there, > > I am getting this error when using Mysql connector: > > File "/opt/b360/lib/python3.4/site-packages/django/core/handlers/base.py",

[Python Brasil 10] Registrations are now open!

2014-07-07 Thread Renato Oliveira
Hey everyone! Registrations for Python Brasil are now open! http://2014.pythonbrasil.org.br/register Sadly the payment form is in portuguese, so if you have any trouble please let me know (in private message). The call for papers will open on Jul 10th as you can see here http://2014.pythonbrasil

Re: django beginner

2014-07-07 Thread ngangsia akumbo
yes i added it to installed app On Monday, July 7, 2014 2:48:17 PM UTC+1, Javier Guerra wrote: > > On Mon, Jul 7, 2014 at 8:17 AM, ngangsia akumbo > wrote: > > But i have just created a separate app call photo, but when i run syncdb > > nothing happens > > > have you added it to INSTALLED_APPS

Re: django beginner

2014-07-07 Thread Javier Guerra Giraldez
On Mon, Jul 7, 2014 at 8:17 AM, ngangsia akumbo wrote: > But i have just created a separate app call photo, but when i run syncdb > nothing happens have you added it to INSTALLED_APPS in settings.py? -- Javier -- You received this message because you are subscribed to the Google Groups "Dja

Re: django beginner

2014-07-07 Thread ngangsia akumbo
I have created my first app for my website which is a news post that will be located on the menu bar. I wish to create a separate app for photo, events, calendars , services and a contact all on the same site. But i have just created a separate app call photo, but when i run syncdb nothing ha

Re: How to filter objects by values of foreign objects in Django admin

2014-07-07 Thread 9devmail
No, it does not. I cannot pass any parameters to this function, because it is being invoked automatically by the admin. class MyAdmin(admin.ModelAdmin): list_display = ['num_of_trans'] How can I pass any arguments to it? Please, read my question carefully. -- You received this message bec

Re: How to filter objects by values of foreign objects in Django admin

2014-07-07 Thread Tom Evans
On Mon, Jul 7, 2014 at 11:47 AM, <9devm...@gmail.com> wrote: > There are tables Product and Transaction. In Product admin there is a field > that shows how many transactions have been created with this product. > > Now, I want to filter the period of time in which these transactions were > created

Re: How to filter objects by values of foreign objects in Django admin

2014-07-07 Thread 9devmail
Thank you, but I think you misunderstood. I do not want to filter Product objects. I want to filter Transaction objects. Please, take a look at provided example. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group a

Re: How to filter objects by values of foreign objects in Django admin

2014-07-07 Thread Lachlan Musicman
Gah, sorry. Fat thumbed the send button https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.filter On 7 July 2014 22:21, Lachlan Musicman wrote: > For Range of dates: > > https://docs.djangoproject.com/en/dev/ref/models/querysets/#range > > for "greater th

Re: How to filter objects by values of foreign objects in Django admin

2014-07-07 Thread Lachlan Musicman
For Range of dates: https://docs.djangoproject.com/en/dev/ref/models/querysets/#range for "greater than" or "less than" dates (and what that means), look at the filter docs: On 7 July 2014 22:12, <9devm...@gmail.com> wrote: > Thanks for pointing it out. > > However, my question is about a diff

Re: How to filter objects by values of foreign objects in Django admin

2014-07-07 Thread 9devmail
Thanks for pointing it out. However, my question is about a different issue. -- 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...@googlegrou

Re: How to filter objects by values of foreign objects in Django admin

2014-07-07 Thread Shubham Pansari
Instead of self.id you should use self itself as using self.id will not work. On Mon, Jul 7, 2014 at 4:17 PM, <9devm...@gmail.com> wrote: > There are tables Product and Transaction. In Product admin there is a > field that shows how many transactions have been created with this product. > > Now,

How to filter objects by values of foreign objects in Django admin

2014-07-07 Thread 9devmail
There are tables Product and Transaction. In Product admin there is a field that shows how many transactions have been created with this product. Now, I want to filter the period of time in which these transactions were created. For example, there was 30 transactions in the last week, but 100