Re: Devils advocate question

2014-12-17 Thread Mario Gudelj
Deploying your Django site doesn't have to be that painful. You can do it in a single command with https://github.com/gcollazo/Fabulous. It'll take you about an hour to have a full stack running with a bit of tweaking. On 18 December 2014 at 11:11, James Schneider wrote:

Re: Devils advocate question

2014-12-17 Thread James Schneider
As a reformed PHP and Drupal developer, I can say with 100% certainty that trying to crowbar Drupal (or any CMS) in to performing actions that are outside of the built-in core functionality is a nightmare at best. I wrote half a dozen custom modules (~6K SLOC), and at least 30% of that was wasted

Re: Django 1.7: How to migrate data between two external apps

2014-12-17 Thread John-Scott
Thanks for your replies Markus! I've added a ticket here https://code.djangoproject.com/ticket/24016 On Wednesday, December 17, 2014 10:47:26 AM UTC-5, Markus Holtermann wrote: > > I agree, a general "here's how you should do it" section in the docs > should be added. Would you mind opening a

Re: Loving the new site / Performance and Optimization

2014-12-17 Thread Russell Keith-Magee
Hi JJ, For archival purposes, I've just deleted your post from the Django Users archive. Pete and the team at Lincoln Loop are long standing, highly respected members of the Django community, and you've just done them a huge disservice. The very first page in the "High performance Django" book

Re: ANN: Django website redesign launched

2014-12-17 Thread Carl Meyer
Hi John, On 12/17/2014 03:40 PM, John Schmitt wrote: > Looks nice to me. > > Pardon me please for being naive, but will the fonts, colours, and layouts be > ported to the Django app itself? > > That is, will the new layout and colour scheme be available to my Django 1.7 > app if I were to do

Re: ANN: Django website redesign launched

2014-12-17 Thread John Schmitt
Looks nice to me. Pardon me please for being naive, but will the fonts, colours, and layouts be ported to the Django app itself? That is, will the new layout and colour scheme be available to my Django 1.7 app if I were to do the following? $ pip install Django --upgrade John -- You

Re: ANN: Django website redesign launched

2014-12-17 Thread Ben Gorman
Awesome job to everyone involved. I'm a fan of the (much needed) improvements to the website. On Tuesday, December 16, 2014 10:12:54 AM UTC-6, Jannis Leidel wrote: > > Hi everyone, > > We're incredibly proud to share with you the new design of the Django > website, the documentation and the

Re: Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Radomir Wojcik
Thanks Carl, I wasn't aware of that function, that works :) Sometimes normalization can just get you in trouble, slow things down. My question was mainly regarding the efficiency in terms of storage, and how you query that if you store the short version. I would not consider dividing the

Re: eCommerce Search

2014-12-17 Thread Jonathan Baker
Also, check out: https://github.com/alex/django-filter On Wed, Dec 17, 2014 at 2:11 PM, John Rodkey wrote: > Yes, that is what I'm looking for. I'm new to the Django world and was > curious if there is already a good existing package. I will search for > django faceted

Re: eCommerce Search

2014-12-17 Thread John Rodkey
Yes, that is what I'm looking for. I'm new to the Django world and was curious if there is already a good existing package. I will search for django faceted search. On Wednesday, December 17, 2014 2:30:13 PM UTC-6, werefrog wrote: > > Hi John, > > You might want to search for

Re: eCommerce Search

2014-12-17 Thread 'werefrog' via Django users
Hi John, You might want to search for django+faceted+search. Is it what you're looking for? Best regards Le 17/12/2014 16:20, John Rodkey a écrit : Hi All, I apologize if this has been answered, but what is the best way to search/query a model based on filters. For example, say we are

Re: ANN: Django website redesign launched

2014-12-17 Thread Carsten Fuchs
Hi all, Am 17.12.2014 um 20:36 schrieb llanitedave: Count me with those who generally like the new layout. The main page looks a little sparser on a large screen, but the documentation pages make much better use of space. I think the fonts are just fine. My main suggestion would be to use

Re: ANN: Django website redesign launched

2014-12-17 Thread llanitedave
On Tuesday, December 16, 2014 8:12:54 AM UTC-8, Jannis Leidel wrote: > > Hi everyone, > > We're incredibly proud to share with you the new design of the Django > website, the documentation and the issue tracker. > > This is a long time coming and we couldn't be happier to finally ship it >

Re: Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Alan Hicks
You might want to try using a many to one relationship, it adds a table lookup but offers flexibility where the data is in the database instead of the application and for large data sets can be much faster. It's also good database normalization practice. class StudentType(Models.Model):

Re: Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Carl Meyer
On 12/17/2014 11:52 AM, Radomir Wojcik wrote: > > So to answer my own question, you wouldn't use the short version in the db if > you plan to do like/contains queries on them. Correct me if I'm wrong. True. I don't think I've ever seen a case where a field had choices and I also wanted to do

Re: Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Radomir Wojcik
> > So to answer my own question, you wouldn't use the short version in the db if > you plan to do like/contains queries on them. Correct me if I'm wrong. > > Unless I plan to use haystack later and index the human readable form later. I think I understand now, thanks -- You received this

Re: Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Carl Meyer
On 12/17/2014 11:23 AM, Radomir Wojcik wrote: > > Thanks for the insight, I'm on the same page as you. > > My only real concern is that I will have to use a function, such as this > one to get the human readable version of the stored data, then you need to > lookup the value from the dict. And

Re: Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Radomir Wojcik
> > Thanks for the insight, I'm on the same page as you. > > My only real concern is that I will have to use a function, such as this one to get the human readable version of the stored data, then you need to lookup the value from the dict. And if you're doing querying on that object using

Re: How to set up a junction table in Django

2014-12-17 Thread Tim Chase
On 2014-12-17 06:34, Ben Gorman wrote: > Notice the NULL value. This basically says "Game 2" consists of > player 2 *and one undetermined* player. This functionality is what > I need to replicate in Django. This is what I tried. > > Models.py > > class Player(models.Model): > player_name =

Re: Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Carl Meyer
Hi Radomir, On 12/17/2014 09:56 AM, Radomir Wojcik wrote: > The official django doc uses this as an example (see below). Is there any > point to storing 'FR' instead of 'Freshman" so the choice matches what is > stored? Is it faster at all? Saves room? What about for querying the data? > Then

Any benefit in storing shorter strings or numbers to represent data for a choice char field?

2014-12-17 Thread Radomir Wojcik
The official django doc uses this as an example (see below). Is there any point to storing 'FR' instead of 'Freshman" so the choice matches what is stored? Is it faster at all? Saves room? What about for querying the data? Then you have to lookup the symbol 'FR' in the tuple if someone wants to

Re: Devils advocate question

2014-12-17 Thread Scot Hacker
On Tuesday, December 16, 2014 1:15:57 PM UTC-8, Sayth Renshaw wrote: > > With django what benefit do I get for the extra build time over Drupal or > Rails. I'd strongly contest that statement. Development time might be roughly equivalent to Rails (given equally experienced developers), but

Re: UUID as primary key for Oracle backend

2014-12-17 Thread Joris Benschop
replying to myself: setting the pk to a binaryfield breaks the usage of django-admin as this tries to force the pk into string as well (options.py function action_checkbox()). -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: ANN: Django website redesign launched

2014-12-17 Thread Bobby Mozumder
For the Documentation, one suggestion I have is that the body font that’s more different from the source code font. It looks like you’re using Roboto (a Helvetica clone) for the body text and Incosolota for the source code. They’re a little too similar. Also, Roboto isn’t a good font for

UUID as primary key for Oracle backend

2014-12-17 Thread Joris Benschop
Hi list I'm trying to use Django 1.7.2 with an Oracle 11.2 backend. THis backend uses RAW(16) fields as primary keys everywhere (it wasnt my choice). THis is however giving me major headaches, as Django seems to insist on decoding these keys to text. Here''s my models: #models.py from

Re: Django 1.7: How to migrate data between two external apps

2014-12-17 Thread Markus Holtermann
I agree, a general "here's how you should do it" section in the docs should be added. Would you mind opening a ticket on https://code.djangoproject.com/ where you state the problem (e.g. link to this discussion). Thanks. /Markus On Wednesday, December 17, 2014 6:01:05 AM UTC+1, John-Scott

eCommerce Search

2014-12-17 Thread John Rodkey
Hi All, I apologize if this has been answered, but what is the best way to search/query a model based on filters. For example, say we are setting up a shoe site. What is the best way to allow customers to search for shoes by brand, color, size, and/or price. I would prefer to make these

How to set up a junction table in Django

2014-12-17 Thread Ben Gorman
(I'm copying my question from Stack Overflow here because it didn't get any answers. Please let me know if it's confusing.) I'm trying to figure out the best way to model this data structure. I want to

Django ManyToManyField Not Displaying in Template

2014-12-17 Thread Rodney Lewis
Hey All: I need my template to iterate through each PartModel and then iterate through the PartModels associated (through a self-referential ManyToManyField) with the PartModel in question. I am doing everything I'm supposed to be doing according to my reading of the "entry_set syntax"

Re: Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-12-17 Thread jonas hagstedt
I ignore E501 as I find it a silly rule, but if I don't then there will be pep8 issues a plenty, so that would explain it. Thanks for taking the time to looking at the code though. Next version will have some JS rewrite (hopefully without breaking backwards compatibility) On Wednesday,

Re: django template auto format tool?

2014-12-17 Thread Abraham Varricatt
Ha, ha. :D I'm no expert. I need the tool myself to learn a lot of this stuff. -Abraham V. On Wed, Dec 17, 2014 at 7:15 PM, Collin Anderson wrote: > > Hi Abraham, > > If you made a took, I'd use it. :) > > Collin > > On Saturday, December 13, 2014 9:53:56 PM UTC-5,

Re: ANN: Django website redesign launched

2014-12-17 Thread Rob
On Wednesday, December 17, 2014 8:39:21 AM UTC-5, Daniele Procida wrote: > > > We'd hate you to be "that guy" too. However, so far you are "that guy", > since merely announcing that you have identified numerous accessibility > issues is useless. > Ok. Tell the designer to google "chrome

Re: ANN: Django website redesign launched

2014-12-17 Thread Tim Chase
On 2014-12-16 19:34, Jannis Leidel wrote: >> On 16 Dec 2014, at 18:37, Tim Chase wrote: >> if remote-font-loading is disabled, certain icons don't come out >> intelligently. To demonstrate what would happen if the font-file >> was unavailable, you can use Firefox, go to about:config and set >>

Re: ANN: Django website redesign launched

2014-12-17 Thread Marcelo Barbero
I don't like the new design. Subjective flaws: too much space wasted, childish style (I exclusively use PCs to access the web). Objective flaws: fonts look ugly, with unclear edges and weird shapes in the "w" letter ( in my Windows XP with Firefox and Chrome). Marcelo 2014-12-17 10:28

Re: AttributeError raised when calling form's superclass clean() method, however the form doesn't get filled with errors

2014-12-17 Thread Collin Anderson
Hi Hector, I think your clean() method needs to return cleaned_data. Collin On Monday, December 15, 2014 2:39:35 PM UTC-5, Héctor Urbina wrote: > > This is my view: > > def perfilInversionCliente(request, cliente_pk): > objetos = {} > cliente = get_object_or_404(Cliente, pk=cliente_pk) >

Re: Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-12-17 Thread Cal Leeming
Thanks for the reply, I was almost sure there were more PEP8 violations, line length and such, but perhaps my eyes failed me so I'll recheck that. And sure I'd be more than happy to go into detail/specifics on my reasoning about the API, I've got two other promised reviews in the queue (Django

Re: django template auto format tool?

2014-12-17 Thread Collin Anderson
Hi Abraham, If you made a took, I'd use it. :) Collin On Saturday, December 13, 2014 9:53:56 PM UTC-5, Abraham Varricatt wrote: > > Hello, > > Is there any command-line based tool which would let one auto-format > Django template files? Ideally, the tool should also be used to format > HTML,

Re: Customize admin site labels

2014-12-17 Thread Collin Anderson
Hi, I think this is what you want: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#customizing-adminsite Collin On Monday, December 15, 2014 12:00:17 PM UTC-5, Xairi Valdivia Maker wrote: > > Hi all. > > I was trying to customize the Django admin site today. I'm strating trying > to

Re: ANN: Django website redesign launched

2014-12-17 Thread Vijay Khemlani
I really like the new design, the old one felt way too cluttered with too much information on the main page and overwhelmed new users. And... haters gonna hate. Congrats to the team! On Wed, Dec 17, 2014 at 10:37 AM, Daniele Procida wrote: > > On Wed, Dec 17, 2014, Rob

Re: ANN: Django website redesign launched

2014-12-17 Thread Daniele Procida
On Wed, Dec 17, 2014, Rob wrote: >On Tuesday, December 16, 2014 5:58:00 PM UTC-5, Christian Schmitt wrote: >> >> Somehow I hate it. The website is the worst website I've seen since a long >> time. >> The contrast is really aweful. >> The issue Tracker got unusable due

Re: Swampdragon, the realtime framework for Django seems interesting. But will it scale ?

2014-12-17 Thread jonas hagstedt
You are right about pep8, there were two pep8 violations in there (fixed that after reading this). * There is a CI setup with Codeship. After reading this I made the badge available on Github (good point). * It is deeply integrated with Django by design. * I am reviewing the JavaScript, but

Re: ANN: Django website redesign launched

2014-12-17 Thread Rob
On Tuesday, December 16, 2014 5:58:00 PM UTC-5, Christian Schmitt wrote: > > Somehow I hate it. The website is the worst website I've seen since a long > time. > The contrast is really aweful. > The issue Tracker got unusable due to the colors that aren't focused on > readability. > Clearly.

Re: ANN: Django website redesign launched

2014-12-17 Thread Sithembewena Lloyd Dube
I second Rakan's suggestion regarding the use of logos. Here's a perfect example of the concept (and how effective it is): http://www.pylonsproject.org/ On Wed, Dec 17, 2014 at 2:04 PM, Rakan Alhneiti wrote: > > God job everyone! > > Do you think the Overview page

Re: ANN: Django website redesign launched

2014-12-17 Thread Rakan Alhneiti
God job everyone! Do you think the Overview page should have the logos of the "Sites using Django"? it would be more visually appealing, in addition, people might be more aware of the logos than just plain names. What do you think? Best Regards, Rakan

Re: ANN: Django website redesign launched

2014-12-17 Thread Mike Dewhirst
On 17/12/2014 7:59 PM, Cal Leeming wrote: you have to avoid things like "thin" font weights I'm interested to know what fonts are being used so I can install them on my machine. Chrome and Firefox make text on the new site look ragged. Windows 8.1. Other than that, +1 Mike -- You

Using django-nocaptcha-recaptcha problem

2014-12-17 Thread Hossein Rashnoo
Hi, I use *django-nocaptcha-recaptcha* in my site and it worked perfect. But after that i tried several times for fill a form , google not recognize me as human with a click and tried to show me a challenge image. *The problem is **challenge image not appear.*I attached the photo of this

Re: ANN: Django website redesign launched

2014-12-17 Thread Jorge C . Leitão
Dear Django community, I would like to congratulate you very much for this. I'm very pleased to see that the work in Django is much better presented to the world, which I think we all agree is an important component of the project. Generally speaking, I like very much the overall look and feel

Re: ANN: Django website redesign launched

2014-12-17 Thread Torsten Bronger
Hallöchen! Cal Leeming writes: > I am inclined to agree that a site should try and look the same on > all devices (in terms of color/contrast etc) I didn't mean this. What I meant was that a webpage should work well on all devices in terms of legibility and usability. It may work better on

DjangoCon Europe 2015

2014-12-17 Thread Daniele Procida
Hello everyone, here's DjangoCon Europe 2015: . Hope to see you in Cardiff in June! Daniele -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: ANN: Django website redesign launched

2014-12-17 Thread Andrea
The new web design look really modern, clean and nice. Something I would suggest is to reduce the "Smartphone feeling" on desktop computers. For example, I have a 26" monitor, and in the "Overview" page I can not look at the 5 overview points at the same time. I need to keep scrolling up and down.

Re: Content using {% include %} not appearing on detailed page Django

2014-12-17 Thread Daniel Roseman
On Tuesday, 16 December 2014 19:27:41 UTC, Andrew Nguyen wrote: > > I'm having some problems getting some of my content to appear on my > detailed page view, which I have in two separate html files that are being > pulled in using {% include %}. Inside my two files, slider.htmland >

Re: Devils advocate question

2014-12-17 Thread Cal Leeming
On Wed, Dec 17, 2014 at 2:53 AM, Tim Chase wrote: > > On 2014-12-17 00:14, Cal Leeming wrote: > > One thing to note, DigitalOcean is truly awesome but it is a > > no-frills service. You get an API and raw performance at dirt cheap > > pricing, everything else you

Re: ANN: Django website redesign launched

2014-12-17 Thread Cal Leeming
I am inclined to agree that a site should try and look the same on all devices (in terms of color/contrast etc) but this simply isn't possible in the real world. The majority of users do not calibrate their equipment, and even when they do, the result will vary massively depending on the quality

Re: ANN: Django website redesign launched

2014-12-17 Thread Sithembewena Lloyd Dube
I like the new design. A lot. Thank you! On Wed, Dec 17, 2014 at 6:20 AM, Torsten Bronger < bron...@physik.rwth-aachen.de> wrote: > > Hallöchen! > > Cal Leeming writes: > > > [...] > > > > The footer menu contrast is a little bright with the white/light > > green, however it's worth noting that