Re: flatpages-tinymce

2013-07-29 Thread Karl Arunachal
Thank you. On Sun, Jul 28, 2013 at 7:03 PM, Roberto López López wrote: > > Your message is quite confusing and difficult to understand, I have to > say. What are you asking for? To show tinymce within your change_form or > within the admin app? What do you mean by "flat pages"? Which error are y

background image

2013-07-29 Thread Karl Arunachal
Hello, What do I do to let user upload their own images, and as use it as their profile's background. I am out of clue. Please advice me. Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivi

Re: South migration ordering on different timeline

2013-07-29 Thread Nora Olsen
Another issue is that once I create a new schemamigration --auto for 006 in my master, there are alot of changes in the migration files. Is this because of the serialized model inside 005? On Tuesday, July 30, 2013 12:28:37 PM UTC+8, Nora Olsen wrote: > > Hi, > > I'm using git-flow and I use

Re: Django not enforcing blank=False on a model

2013-07-29 Thread Jani Tiainen
On Mon, 29 Jul 2013 18:14:50 -0700 (PDT) Knight Samar wrote: > Hi, > > I have a model > > > from django.db import models > > > > class Organization(models.Model): > > name = models.CharField(max_length=100, > > blank = False, #mandatory > >

Re: Django 1.5 Feature Suggestion

2013-07-29 Thread JJ Zolper
My apologies for not making this quickly accessible. I meant to stick the link in there but it didn't make it into my previous post. It's been a long day. Here it is: https://github.com/Liberationtech/django-libtech-emailuser JJ On Monday, July 29, 2013 9:07:43 PM UTC-4, Russell Keith-Magee wr

Re: Django 1.5 Feature Suggestion

2013-07-29 Thread JJ Zolper
Russell Keith-Magee, This came to mind, before in my post I described a package I had come across that someone had made as their fix. In quoting his github: "There's a number apps out there for doing authentication with emailaddresses prior to Django 1.5. With the advent of Django 1.5 the Dja

South migration ordering on different timeline

2013-07-29 Thread Nora Olsen
Hi, I'm using git-flow and I use the develop and master branches. Since I had to move features ahead of schedule and bring forward to production, I had to cherry-pick[1] them into the master branch. The south migration scripts are not in order anymore and and staging box is up to date with th

Re: Django 1.5 Feature Suggestion

2013-07-29 Thread JJ Zolper
Oh that's right it was Kenneth, not sure why I thought it was you. That's a good point about 1.5. That's sort of where I was going. I agree that everything is headed in the right direction. And I'm sure they are busy. I can only imagine. No problem on opening the ticket and getting it started a

Django not enforcing blank=False on a model

2013-07-29 Thread Knight Samar
Hi, I have a model > from django.db import models > > class Organization(models.Model): > name = models.CharField(max_length=100, > blank = False, #mandatory > help_text = "Name of your Organization", > verbo

invalid reference to FROM-clause entry for table

2013-07-29 Thread hippomoe
I'm using djorm-ext-pgfulltext extension to do full-text-search using Postgres on a title field for one of my models (Bookmark). class Bookmark(TimeStampModel): title = models.CharField(max_length = 100) # other fields search_index = VectorField() objects = SearchManager(

Re: Django 1.5 Feature Suggestion

2013-07-29 Thread Russell Keith-Magee
On Tue, Jul 30, 2013 at 8:37 AM, JJ Zolper wrote: > Russell Keith-Magee, > > Are you the one who is doing "Getting Started With Django" ? Sorry for > getting off topic but just was curious. If so I donated money to that > project and I am glad you are doing it. > Sorry, that's not me. You're thi

Re: Django 1.5 Feature Suggestion

2013-07-29 Thread JJ Zolper
Russell Keith-Magee, Are you the one who is doing "Getting Started With Django" ? Sorry for getting off topic but just was curious. If so I donated money to that project and I am glad you are doing it. Yes, that's what it seems to be called by other Django devs, "Email address as username." I

Re: django workaround for multiple primary keys or sqlalchemy

2013-07-29 Thread Guy Tamir
Great thanks for the helpful reply! I'll use the Django ORM like you suggested, that was my gut filling anyways.. Thanks! On Monday, July 29, 2013 3:09:56 PM UTC-4, Justin Michalicek wrote: > > I would go with the Django ORM and just add a unique_together for a > multiple column uniqueness cons

Re: django workaround for multiple primary keys or sqlalchemy

2013-07-29 Thread Bill Freeman
Its not clear to me whether unique_together will make there be an index, so it might be slow. On Mon, Jul 29, 2013 at 3:09 PM, Justin Michalicek wrote: > I would go with the Django ORM and just add a unique_together for a > multiple column uniqueness constraint. That index won't be your primary

Creating libraries that use django ORM and they use each other.

2013-07-29 Thread Roberto Bouza
Hello, I'm building a set of common libraries and a few other specific libraries. As of right now the common library works great as an independent library that can be used by applications. The problem I'm having now is that I'm building a new library that will use the common library. This new

Re: django workaround for multiple primary keys or sqlalchemy

2013-07-29 Thread Justin Michalicek
I would go with the Django ORM and just add a unique_together for a multiple column uniqueness constraint. That index won't be your primary key, but it will still be a unique index. I've even gone as far as to use custom .sql files (which manage.py syncdb runs) and custom sql in South migrati

Re: installing RemoteUserMiddleware causes errors

2013-07-29 Thread Brian Tingle
code.djangoproject.com is back up now; seems like I bumping up against this three year old bug that has not been updated in 19 months: https://code.djangoproject.com/ticket/13394 Any advice on how to handle this? Do I need to re-write all the tests? Does this mean RemoteUserMiddleware is not

installing RemoteUserMiddleware causes errors

2013-07-29 Thread Brian Tingle
I keep getting 504 gateway timeout errors on http://code.djangoproject.com/ so I can't look through the tickets for this. There are some threads on this list that seem like they might be related; but I can't tell because they link to code.djangoproject.com which I can't get to. I tried to foll

Django Pipeline not overwriting the hash of the cache busting js file

2013-07-29 Thread Benjamin Plesser
class S3PipelineStorage(PipelineMixin, CachedFilesMixin, S3BotoStorage): pass PIPELINE_JS = { 'main.js': { 'output_filename': 'js/main.min.js', 'source_filenames': [ 'js/external/underscore.js', 'js/external/backbone-1.0.0.js', 'js/external/bootstrap-2.2.

Django/Python based webmail

2013-07-29 Thread Tomas Ehrlich
Hi there, I'm looking for django (or python) based webmail, similar to RoundCube and SquirrelMail. I tried djangopackages.com and google search, but it doesn't seem to be an alive project out there. How you ever wondered why? :) Seems to me like useful app. Thanks in advance Cheers, Tom --

django workaround for multiple primary keys or sqlalchemy

2013-07-29 Thread Guy Tamir
Hi all, i'm fairly new to Django and i have a question regarding the best practice for a situation i've got. I'm working on a new project and after designing my ERD I know i need a few tables to have multiple primary keys and one table with triple primary keys. after reading about the subject

Re: Changing log filename

2013-07-29 Thread Bill Freeman
Since your handler is used for the "myproject" logger, to use that handler all your apps would have to use loggers descended from that logger, that is, all your apps would have to use something like: logging.getLogger('myproject') or logging.getLogger('myproject.app1') or logging.getLogger('

Multiple Form Submit with Single Submit Button

2013-07-29 Thread pattinson
I'm currently working with django project. I had to filter the data store on the database based on the user input on form (at template) as looked below. On form user either enter value or

Re: How the authentication takes place at the backend in django?

2013-07-29 Thread Kelvin Wong
You can always read the source code to find this out https://github.com/django/django/blob/master/django/contrib/auth/models.py https://github.com/django/django/blob/master/django/contrib/auth/backends.py https://github.com/django/django/blob/master/django/contrib/auth/hashers.py Also the docs

Re: working with images in django

2013-07-29 Thread Kelvin Wong
So you have images already made and you want to place them into HTML? That's easy. If you want to make the image dynamically using something like PIL or Pillow then flow them into a PDF then that's a little more involved. Try explaining your use case a bit more. K On Sunday, July 28, 2013 7:2

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2013-07-29 Thread Carsten Fuchs
Hi Martin, Am 2013-07-26 20:48, schrieb Martin J. Laubach: This is rather unusual. A join in the database should be quite a bit faster than doing things manually, except if the joined tables produce massive amounts of data. This suggests that you're missing useful indexes and/or statistics

Re: Django throws an exception when I add data from admin interface

2013-07-29 Thread Yu Yang
Thanks for your reply, you are right. On Saturday, July 27, 2013 12:21:07 AM UTC+8, Tom Evans wrote: > > On Fri, Jul 26, 2013 at 4:22 PM, Yu Yang > > wrote: > > It is a blog app, I have created a Article model and Tag model. when I > add > > data to Article table from Admin interface, the dat

[ANN] django-localflavor 1.0 release

2013-07-29 Thread Jannis Leidel
Hi all, As proposed two months ago [1], I just released django-localflavor 1.0 with all "local flavors" recombined. This fixes the failed handover of the django.contrib.localflavor app to the broader community with the per-country django-localflavor-* apps before the Django 1.5 release. Those

manage.py dumpdata for FieldFile serializes payload of file

2013-07-29 Thread jrief
Yesterday, I added a useful feature to *django-filer *, which allows to dump the payload of files together with their meta-data, when runningmanage.py dumpdata > dumpfile.json. A dumpfile which is reimported using manage.py loaddata dumpfile.json the

pdf conversion error

2013-07-29 Thread Harjot Mann
I am trying to convert the html templates in my project from localhost using wkhtltopdf. I used weasyprint and a script also but the getting the same errror from all. It creates the pdf but inside this is written: Not Found The requested URL /accounts/login/ was not found on this server. Apache/2.2

Re: What client side html layout tools are people using to speed up template development?

2013-07-29 Thread Mario Gudelj
Use http://twitter.github.io/bootstrap/ framework for your frontend. If you google "django bootstrap" you'll find some apps that will help. For fonts i usually pick Google font that looks good. If you want to use web safe font go to http://cssfontstack.com/ As for colors, try https://kuler.adobe.

Re: What client side html layout tools are people using to speed up template development?

2013-07-29 Thread Avraham Serour
I never used this yahoo lib bit it seems to me that you are looking for twitter bootstrap or zurb foundation On Jul 29, 2013 12:18 PM, "Sam Walters" wrote: > Its not specific to django however i have a few small projects on the > horizon where i could really save time spent on the things im not g

What client side html layout tools are people using to speed up template development?

2013-07-29 Thread Sam Walters
Its not specific to django however i have a few small projects on the horizon where i could really save time spent on the things im not good at: Graphic design CSS layouts, choosing fonts, colours that look good. What are the tools people are using for this these days? What are strong points of t

Re: Learning how to build a web site for my python games and a blog

2013-07-29 Thread Christian Erhardt
Sry, I have no idea what you are talking about Am Samstag, 27. Juli 2013 15:57:45 UTC+2 schrieb Randy Baxley: > > Is anyone working through The Django Book that would like to form a fb > page just for that or knows of a good tutorial where questions will get > answers? > -- You received this m

Re: .filter() and .exclude() don't add up

2013-07-29 Thread akaariai
On Sunday, July 28, 2013 10:44:49 AM UTC+3, Daniele Procida wrote: > > On Sat, Jul 27, 2013, Steve McConville > > wrote: > > >Perhaps I'm not sure exactly what you mean by "more general", but I > >was recommending something like > > > >red_things = queryset.filter(Q(color="red")) > >non_red