Re: interaction between two django app

2017-01-25 Thread Daniele Procida
On Tue, Jan 24, 2017, Lorenzo Bernardi wrote: > I don't know what is the best approach for the communication between >two django applications. > > We have a website using django and django-cms. We have another >application, the "seminar" app for managing some informations like >seminars, n

Re: Why was Roberto Rosario silently removed from the Django Software Foundation?

2016-11-13 Thread Daniele Procida
On Sun, Nov 13, 2016, Mario R. Osorio wrote: >Mr Rosario We respectfully ask all users of this email list not to engage in discussions of this kind about individuals. It's not the place for it. If anyone feels that they have been wronged or ill-treated by anyone else in or representing the Dj

Re: friends dont let django suck

2016-08-15 Thread Daniele Procida
On Mon, Aug 15, 2016, Saeon Tao wrote: >Arrive at this marvel of a website and input any normal, ordinary SQL query >and click >enter >The SQL query then goes to django head office mainframe, where their very >special computer can figure out a deeply complicated "django queryset" to >match the

Re: django 1.9, migrations

2016-07-29 Thread Daniele Procida
On Fri, Jul 29, 2016, Jorge Cadena wrote: >I am dev in django at last 4 years, i missed ./manage.py syncdb, Please change your email subject to something more polite. You have a good chance to get expert help here from people, including perhaps people who helped create the Django migrations sy

Re: Beginner question regarding virtualenv

2016-06-23 Thread Daniele Procida
On Thu, Jun 23, 2016, Leo wrote: >I have been following the Django tutorial but recently discovered some >other Django tutorials which led me to posting this question. I didn't >create a Python vitrualenv rather installed everything at the root of the >OS. I am unsure if this will cause me pro

Re: Support Please

2016-04-26 Thread Daniele Procida
On Tue, Apr 26, 2016, Katie Chubb wrote: >I need to get in contact with someone who can help me make changes to the >client facing home page. I am new to the marketing role at the company and >the details have not been passed on. Is there anyone who can help me with >this? Without knowing de

PGConf US 2016 - free tickets for Django community members

2016-03-19 Thread Daniele Procida
The organisers of PGConf US 2016, the biggest Postgres conference in the world, have offered five full conference tickets worth US$439.00 each to the Django community. Daniele -- You received this message because you are subsc

django CMS 3.2 is now available

2015-11-25 Thread Daniele Procida
Hello, we released django CMS 3.2 last night, which we are very excited about. There are lots of new improvements and functionality, but we think we have a Django first: a CMS with (near-complete) touch-screen support, not just for published websites, but for all the editing interfaces. (It wa

The django CMS Network

2015-04-02 Thread Daniele Procida
Dear django CMS friends, You might be interested in the django CMS Network. There's a preview at but it will be appearing on django-cms.org soon too. It hasn't officially been launched yet, but will be publicly available in the next week or so. If you work with

Message from David about views

2015-03-16 Thread Daniele Procida
Yesterday I accidentally rejected a message from a new user called David about views. Unfortunately Google Groups gives us no logs of any kind, so I have no way of correcting the error or contacting David. So David: if you're reading this, please try sending your message again, and sorry for t

DjangoCon Europe 2015

2015-03-11 Thread Daniele Procida
Dear friends in Django, There's just one week left to submit a talk for this year's DjangoCon in Cardiff. If you don't think you're the right person to give a talk, please reconsider - and don't just take our word for it, read what Erik Romijn has to say o

Re: Recommendations for hosting service?

2015-01-06 Thread Daniele Procida
On Mon, Jan 5, 2015, Bobby Mozumder wrote: >Anyone have recommendations for hosting services that can do Django, >Node.js, Postgreqsl, python3, as well as PHP/MySQL for legacy stuff? >I'm also looking to have IMAP email. This would be for several domains, >with maybe 100GB of data. I recommend

DjangoCon Europe 2015 registration is open

2015-01-04 Thread Daniele Procida
Hi everyone. Registration for tickets and the call for proposals are now open, with a special one-month window exclusive to members of under-represented groups. So, "minority-only registration" (we couldn't think of a better term) is available now. Everyone else will have to wait until February

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 to the colors that aren't f

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 ema

Re: Devils advocate question

2014-12-16 Thread Daniele Procida
On Tue, Dec 16, 2014, Sayth Renshaw wrote: >Why hasn't a cms been designed off django or python? A language cultural >effect yoy would think python would be more stable than php/drupal. You mean like django CMS, to Fein CMS, Mezzanine, Wagtail or any of the other Django CMSes? Daniele -- You

Re: Returning submitted formset data to the template for further editing

2014-07-01 Thread Daniele Procida
On Sat, Jun 28, 2014, Andrew Choi wrote: >It doesn't seem like there's an easier way to do what you're proposing. >However, what's the form data manipulation that you need to do for some of >these forms? Is there a way to separate that from the form set submission? Each time the form is resubm

Returning submitted formset data to the template for further editing

2014-06-27 Thread Daniele Procida
As far as I can tell, there doesn't seem to be an easy way to do this: 1. bind POST data from the request to a formset 2. loop over the forms in the formset 3. for each form, manipulate some of the form data 4. return the manipulated form data to the template 5. in the template, have useful a

Re: How to learn Django?

2014-06-15 Thread Daniele Procida
On Sun, Jun 15, 2014, Aadit Kapoor wrote: >How to learn Django? is the best place to start for information. And then the best way to learn Django, as is the case with any tool, is to have a problem you want to solve with it, because th

Python/Django users in Namibia

2014-06-14 Thread Daniele Procida
Is there anyone here from Namibia, or involved in Python/Django-related activities there, or who knows someone who is? Please get in touch with me if so, at dani...@vurt.org. It's about holding an international Python community event in Windhoek. See f

Re: OneToOne? Inheritance? Another solution for nested model relationships?

2014-05-28 Thread Daniele Procida
On Wed, May 28, 2014, Leonardo Giordani wrote: >I usually solve such issues with Inheritance. I feel comfortable with it >because it lets me (in your example) to manage both ResearchStudent and >ResearchStaff independently, while keeping the Researcher parent model >available to deal with "global

OneToOne? Inheritance? Another solution for nested model relationships?

2014-05-26 Thread Daniele Procida
I've an application that's been happily running for a few years, that does this: class Person(Model): # everyone's a Person class Researcher(Model): # a Researcher is Person who publishes research person = models.OneToOneField(Person) class Publication(Model): author = models.Fore

DjangoCon Europe 2014: absolute last (and brief) chance to get tickets

2014-04-29 Thread Daniele Procida
We have been able to make a few more tickets available for DjangoCon Europe 2014. This last batch of sales must close at the very latest 1700 CET today, 29th April: http://www.weezevent.com/evenement.php?id_evenement=53536&lg_billetterie=2 - and may need to close earlier. If you would like a

Re: CSS not rendering correctly

2014-04-02 Thread Daniele Procida
On Wed, Apr 2, 2014, Warren Jacobus wrote: >I'm having some trouble with my css in my django app. See pic for how >things get rendered. Restart your server, in case you introduced some key files after you last started it, or run collectstatic

DjangoCon Europe 2014

2014-03-27 Thread Daniele Procida
Djangonauts! This year's DjangoCon Europe is taking place in mid-May, on its very own island off the coast of the French riviera. If you're planning to come and don't yet have your ticket, you should act swiftly, because ticket sales must close on the 20th April. If you haven't yet decided whe

Dutch Django Sprint in Amsterdam February 2014

2014-02-24 Thread Daniele Procida
The sprint this weekend was productive - Baptiste lists some commits at . It was also a lot of fun. Thanks to Erik Romijn and the Dutch Django Association for organising it, and TravelBird (they're recruiting by the way!) who sup

Open day at Django Weekend Cardiff

2014-01-18 Thread Daniele Procida
Django Weekend Cardiff is completely sold out. Our open day remains open however, and you're invited to attend the numerous talks, tutorials and demonstrations in the programme. There are fifteen different sessio

Django Weekend Cardiff - last call for talks and tutorials

2014-01-05 Thread Daniele Procida
The final deadline for porposals for talks and tutorials is the end of 7th January (GMT). All Python/Django-related proposals are welcome. We especially want proposals from: * people who are minorities in the field * first-time speakers (in other w

Django Weekend Cardiff

2013-12-20 Thread Daniele Procida
As you may already be aware, tickets for Django Weekend Cardiff sold out in three weeks. If you were hoping to attend, please add your name to the waitlist as soon as possible: We

Re: Django Weekend Cardiff

2013-12-16 Thread Daniele Procida
On Wed, Nov 13, 2013, Daniele Procida wrote: >The UK's first-ever Django conference will take place on the 7th-9th >February 2014 in Cardiff, Wales. > ><http://djangoweekend.org> > >The programme for the event: > >Friday: tutorials and demonstrations (also o

Django Weekend Cardiff - call for papers

2013-12-01 Thread Daniele Procida
Django Weekend Cardiff - the first-ever Django conference in the UK - will take place from the 7th to the 9th February 2014, for three days of talks, tutorials, code sprints and clinics. The conference is Django-focused, but all aspects of Python fall within its r

Re: Call for Sponsors: Django Weekend Cardiff

2013-11-26 Thread Daniele Procida
On Sat, Nov 23, 2013, Daniele Procida wrote: >[With apologies to those who will inevitably see this message in more >than one group or list.] > >In 2014 Cardiff will hold the first-ever Django conference in the UK. <https://djangoweekend.org> Tickets are now on sale! There&#

Call for Sponsors: Django Weekend Cardiff

2013-11-23 Thread Daniele Procida
[With apologies to those who will inevitably see this message in more than one group or list.] In 2014 Cardiff will hold the first-ever Django conference in the UK. Django Weekend Cardiff will take place at Cardiff University in Wales , from th

Django Weekend Cardiff

2013-11-13 Thread Daniele Procida
(With apologies if you have already seen this on another email list or newsgroup.) The UK's first-ever Django conference will take place on the 7th-9th February 2014 in Cardiff, Wales. The programme for the event: Friday: tutorials and demonstrations (also open to t

Re: Complex query reduction

2013-11-02 Thread Daniele Procida
On Fri, Nov 1, 2013, Javier Guerra Giraldez wrote: >have you tried eliminating the second IN relationship? something like > >entities = entity.get_descendants() > >items = BibliographicRecord.objects.filter >(authored__researcher__person__member_of__entity__in=entities).distinct() Indeed I have

Complex query reduction

2013-11-01 Thread Daniele Procida
I have been exploring a rather complex query: # get all the MPTT descendants of entity entities = entity.get_descendants() # get all the Researchers in these Entities researchers = Researcher.objects.filter(person__member_of__entity__in=entities) # get all the BibliographicRecords for these Re

Re: Please suggest me best e-tutorial for Django framework.

2013-10-17 Thread Daniele Procida
On Thu, Oct 17, 2013, rush wrote: >http://www.djangobook.com/ is also a good choice. I would not recommend that actually. It's very out of date. Even the book itself says: "we ask that, at this time, djangobook.com not be used for educational purposes." On the other hand, if people woud like

Re: PyCons in Africa

2013-10-06 Thread Daniele Procida
On Fri, Oct 4, 2013, Nigel Legg wrote: >I have lived in both Zambia and Kenya, and have family in Zambia. Bongo >Hive in Lusaka may be a good place to start (they are on twitter). I >haven't been there for more than five years, but would be interested in >getting involved in some way, time and w

PyCons in Africa

2013-10-04 Thread Daniele Procida
First of all, apologies if you have to read this more than once because of the cross-posting. I've had an idea brewing recently. I went to meet Professor Judith Hall this afternoon to talk about it. She's involved with http://medicine.cardiff.ac.uk/mothers-africa/ (amongst other things) and is

Cardiff Django users group

2013-09-28 Thread Daniele Procida
I'm starting a user group for Django developers in Cardiff, Wales. Email list: The plan is to hold meetings monthly, probably on a Wednesday evening with occasional events on weekends. I'm trying to get a suitable venue with good wireles

Re: Ordering a queryset on a reverse foreign key's attribute

2013-08-01 Thread Daniele Procida
On Thu, Aug 1, 2013, Simon Charette wrote: >>From a quick look I'd also expect `order_by('-children__date')` to work. > >Can you provide the generated SQL query and some results? I have in fact raised a ticket about this which shows the generated se

Ordering a queryset on a reverse foreign key's attribute

2013-08-01 Thread Daniele Procida
I have an Event model: class Event(Model): parent = models.ForeignKey('self', related_name='children') date = models.DateField() My question is: given a queryset of this model, how can I order it based on the Events' children's dates so that (say) Events with child Events wit

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

2013-07-30 Thread Daniele Procida
On Mon, Jul 29, 2013, akaariai wrote: >> I understood that part. But by "more general" I mean one that will work >> for any case, without having to know where the Nulls might be. >> >> So given queryset A, and its subset queryset B, we can place B against A >> and obtain its complement. >> >>

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

2013-07-28 Thread Daniele Procida
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_things = queryset.filter(~Q(color="red") | Q(color__isnull=True) > >This will produce SQL li

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

2013-07-27 Thread Daniele Procida
On Fri, Jul 26, 2013, Steve McConville wrote: >> So, if one of the fields can be Null, then *neither*: >> >> queryset.filter(field=value) >> >> queryset.exclude(field=value) >> >> will match a record where it's Null? > >As I understand it, this is correct - it's certainly the way SQL was

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

2013-07-27 Thread Daniele Procida
On Fri, Jul 26, 2013, Bill Freeman wrote: >You really should figure out which record isn't showing up in either sub >case and look at it in detail to see if NULLs are involved before you spend >time trying to fix a problem that you don't have. > >You could, for example collect all the ids from th

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

2013-07-26 Thread Daniele Procida
On Fri, Jul 26, 2013, Steve McConville wrote: >Firstly (and I don't think this is the cause of the problem) you're >calling datetime.now() four times, which will give you four different >datetimes (ie. the queries will not be completely identical). Good point, I will address that. > Secondly >S

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

2013-07-26 Thread Daniele Procida
How is this possible? # we start with a queryset actual_events # get forthcoming_events using filter() forthcoming_events = actual_events.filter( Q(single_day_event = True, date__gte = datetime.now()) | \ Q(single_day_event = False, end_date__gte = datetime.now()) ) # get previous

Friendly browsing through categories

2013-06-03 Thread Daniele Procida
I am developing an application (for managing a variety of learning/training resources) each of which is catalogued in various ways - type, audience, topic(s), domain(s), cost, and so on. I have the Django application's models and structures built, and I have begun populating it with data, I'd l

Re: Workshop: Don't Be Afraid to Commit, Cardiff, UK

2013-05-31 Thread Daniele Procida
On Fri, May 31, 2013, Rahul Ramesh wrote: >I think what you're doing is really great. Do you have recorded videos >available online or do you plan to record your next session? It'd be great >for people like me who can't attend the workshop. I don't think that a recording of it would work well, b

Workshop: Don't Be Afraid to Commit, Cardiff, UK

2013-05-30 Thread Daniele Procida
I'm running a Don't Be Afraid to Commit in Cardiff weekend after next, under the auspices of the Cardiff Dev Workshop. It's a workshop/tutorial for Python/Django developers who would like to contribute to the projects they use, but need more grounding in some of the tools required. I ran this at

Re: IdeaScale-alike DJango applications

2013-05-23 Thread Daniele Procida
On Thu, May 23, 2013, Russell Keith-Magee wrote: >On Wed, May 22, 2013 at 6:53 PM, Daniele Procida wrote: > >> Are there any Django applications that do the same thing as < >> http://ideascale.com>? >> >> IdeaScale basically seems to be a way for users t

IdeaScale-alike DJango applications

2013-05-22 Thread Daniele Procida
Are there any Django applications that do the same thing as ? IdeaScale basically seems to be a way for users to submit proposals, and have them voted up and down by other users; like polls, but in a web 2.1beta kind of way. It's something I've been asked about. Any sug

Python/Django DevOps community and resources

2013-05-20 Thread Daniele Procida
Hi folks. I've just got back from the most astounding DjangoCon Europe in Warsaw, where several of decided that the DevOps in the community needed more mutual support. So, we've set up #django-devops on irc.freenode.net, and for an email list. Do

Re: cant syncdb with postgresql

2013-04-25 Thread Daniele Procida
On Thu, Apr 25, 2013, Pedro Silva wrote: >installed apps: >'django.contrib.auth', >'django.contrib.contenttypes', >'django.contrib.sessions', >'django.contrib.messages', >'django.contrib.staticfiles', >'django.contrib.admin', >'django.contrib.admindocs', >'psycopg2

Re: cant syncdb with postgresql

2013-04-25 Thread Daniele Procida
On Thu, Apr 25, 2013, Pedro Silva wrote: >I cant sync db with heroku postgresql, with sqllite works great. >Can anybody help me? >requeriments: >Django==1.4.5 >PIL==1.1.7 >distribute==0.6.36 >dj-database-url==0.2.1 >django-db-log==2.2.1 >django-log-file-viewer==0.4 >psycopg2==2.5 >virtualenv==1.9

Django Inspector - Inspects and reports on Django sites

2013-04-15 Thread Daniele Procida
If like me you're responsible for a large and sprawling site, maintained by several dozen users, and you feel you don't know enough about what's going on in it you might find useful. I discovered a few interesting things the first time I ran it, incl

Django Form Designer

2013-03-07 Thread Daniele Procida
I like and use Django Form Designer, , but it hasn't been updated for a while and needs some work. For example, it needs better docs and tests, while there are a number of outstanding pull requests. I'm hoping to hear back from Samuel Luescher,

Re: On the fly image resize

2013-02-04 Thread Daniele Procida
On Sat, Feb 2, 2013, nYmo wrote: >I'm new to django and also python but have already some programming >experience. I'm currently creating my first application in django and get >stucked because I'm looking for the best way to resize uploaded images. >I'm already so far that I can upload/delete/

Share an apartment in Warsaw for DjangCon Europe

2013-02-01 Thread Daniele Procida
I am hoping to go to DjangoCon in May, arriving 14th departing 19th or 20th after the sprints. Finances are tight - I am looking into apartments, which might be cheaper and more comfortable than a hotel. If anyone else is doing the same and would like to share, please drop me a line. Thanks,

"Add another [inline item]" and custom widgets with JavaScript

2013-01-24 Thread Daniele Procida
I work with a rather complex autocomplete widget for admin that works with generic foreign keys (select the content type, then you can do an autcomplete search for the item). The problem is that it breaks when you "Add another [inline item]" in the admin - the issue raised in

Custom jQuery in admin

2013-01-11 Thread Daniele Procida
I had a custom widget, which broke after some other things were updated. It was saying: TypeError: 'undefined' is not a function (evaluating '$('#id_conta cts_and_people-phonecontact-content_type-object_id-0-label').combo box()') Last night, I finally managed to fix it, after noticin

Don't be afraid to commit - a free Python/Django workshop (Cardiff, UK)

2013-01-11 Thread Daniele Procida
I have made a combined talk/workshop proposal for DjangoCon Europe in May (all proposals at ). I want to run the workshop part a couple of times before taking it to Warsaw (assuming the proposal is accepted, but it's worth doing anyway). The workshop is free and

DjangoCon Europe 2013 call for papers

2012-12-11 Thread Daniele Procida
DjangoCon Europe http://2013.djangocon.eu will be held in Warsaw from the 15th-19th May 2013 (three days of talks followed by two of sprints and workshops). The organisers are very pleased to invite members of the Django community to submit their talk proposals for the event. We're looking for

Tests tutorial for djangoproject.com

2012-11-07 Thread Daniele Procida
I have done some work on writing up a tutorial for testing (part 5 of the existing tutorial, in effect). My draft so far: I'd really appreciate feedback, on any aspect (accuracy, style, terminology, good p

Calculated attributes of ModelAdmin classes

2012-10-19 Thread Daniele Procida
I have a ModelAdmin class. Sometimes, I want it to include a certain field in the fieldsets, and sometimes I don't (whether it does or not would be the result of a calculation on the instance that is being edited in the admin). How can I make the fieldsets attribute a calculated value, calcul

Re: Better feedback for admin users

2012-10-19 Thread Daniele Procida
On Thu, Oct 18, 2012, Marc Aymerich wrote: >On Wed, Oct 17, 2012 at 12:21 AM, Daniele Procida wrote: >> I am starting to customise the admin classes for my models so that I >can provide extra feedback to the user. >> >> For example I want to report - in the admin p

Better feedback for admin users

2012-10-16 Thread Daniele Procida
I am starting to customise the admin classes for my models so that I can provide extra feedback to the user. For example I want to report - in the admin page - useful information about how the system will interpret the current state of the object being edited. I'm doing this by using readonly

Re: Django testing strategy

2012-10-10 Thread Daniele Procida
On Thu, Oct 4, 2012, Daniele Procida wrote: >I have started writing my first tests, for a project that has become >pretty large (several thousand lines of source code). >I'd appreciate any advice. Many thanks for the advice and suggestions. This is what I have produced s

Re: Django testing strategy

2012-10-05 Thread Daniele Procida
On Thu, Oct 4, 2012, Evan Brumley wrote: >django-dynamic-fixture can also help a lot in this situation: >http://paulocheque.github.com/django-dynamic-fixture/ > >Certainly beats having to futz around with fixtures. Thanks - there seem to be a lot of tools to generate test data in various ways,

Django testing strategy

2012-10-04 Thread Daniele Procida
I have started writing my first tests, for a project that has become pretty large (several thousand lines of source code). What needs the most testing - where most of the bugs or incorrect appear emerge - are the very complex interactions between objects in the system. To me, the intuitive way

Re: Django and PHP webhosting in Germany

2012-06-17 Thread Daniele Procida
On Sun, Jun 17, 2012, Mike Ryan wrote: >Does anyone else feel that "which webhost..." questions should be politely >responded to with a link to >https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts, and a request >not to post similar questions in future? Not really, it seems a perfectl

Re: Django and PHP webhosting in Germany

2012-06-16 Thread Daniele Procida
On Sat, Jun 16, 2012, sjtirtha wrote: >can somebody recommend a good and cheap web hosting for django and >php(wordpress)? >I'm looking something below 10 ? monthly, only for small apps and blogs. have worked well for me; they are inexpensive and the support is quick

Re: How to add Google Map Markers With Django Template Tags

2012-05-31 Thread Daniele Procida
On 31 May 2012, at 21:21, DF wrote: That's interesting, but mine seems like it could be less involved. This is what I attempted, which failed: http://dpaste.org/55T9x/ Well, you don't need all the other stuff I discussed, but the key thing is: given some variable (in my example it was place.si

Re: How to add Google Map Markers With Django Template Tags

2012-05-31 Thread Daniele Procida
On Thu, May 31, 2012, DF wrote: >Any insight on how to properly loop through items in a stored Django object >with lat, lon info and place these on a Google Map using the API would be >very appreciated. I do it like this:

Re: Taggit fragmentation

2012-05-29 Thread Daniele Procida
On Tue, May 29, 2012, Marcin Tustin wrote: >That's not quite right. Once you build up a reputation as the package to >have, if you don't at least hand over the project, you expose everyone to >the pain of figuring out how to either use your code, or which is best >place to get a forked version. I

Re: Taggit fragmentation

2012-05-29 Thread Daniele Procida
On Tue, May 29, 2012, Simon Bächler wrote: >I believe that if you publish a repo and you are the main contributor >then it is your responsibility to maintain it. That seems to be asking a bit much, frankly. Don't forget that one way for Alex (or whoever) to meet the obligations you set out fo

Re: Where are the women?

2012-05-21 Thread Daniele Procida
On Tue, Apr 24, 2012, Daniele Procida wrote: ><http://2012.djangocon.eu/schedule/involving-women-in-the-community/> - >and then I had a closer look at the names of this year's speakers. > >There are *two* women out of the 24 or so speakers listed, and only one >is doi

Re: Where are the women?

2012-04-25 Thread Daniele Procida
On Wed, Apr 25, 2012, Hanne Moa wrote: >On 24 April 2012 16:14, Daniele Procida wrote: >> I was looking at <http://2012.djangocon.eu/schedule/> again with >excited anticipation, and reading through the talk summaries. >> There are *two* women out of the 24 or so speake

Where are the women?

2012-04-24 Thread Daniele Procida
I was looking at again with excited anticipation, and reading through the talk summaries. - and then I had a closer look at the names of this year's speakers. There are *two* women out of

DjangoCon Europe Early Bird registration

2012-03-28 Thread Daniele Procida
Just a reminder - you only have a couple of days left to register at the Early Bird rate. Also, I challenge you to find cooler accommodation in Zürich than I have: Daniele -- You received this message because you are subscribed to

Django, nginx, Passenger

2012-03-02 Thread Daniele Procida
We're having a devil of a time with our new server, which went live yesterday after two months of testing. Every so often, nginx will display a 502 gateway error page, and something like this will appear in the logs: 2012/03/02 18:05:38 [error] 29743#0: *1479 upstream prematurely closed connec

Django and its MySQL databases

2011-11-23 Thread Daniele Procida
My old database's tables were MyISAM. On my new server, MySQL by default uses InnoDB, which I understand is preferable. However, when I ask Django tp a new table, on a database on the new server (which still contains lots of MyISAM tables imported from the old database) it creates them with for

Re: Database management commands

2011-10-28 Thread Daniele Procida
On Fri, Oct 28, 2011, Russell Keith-Magee wrote: >On Fri, Oct 28, 2011 at 12:49 AM, Leonardo Giordani > wrote: >> This is a problem related to Innodb and MyISAM. Django uses this >> latter, > >Incorrect. Django doesn't have any built in preference for InnoDB or >MyISAM -- it uses the system defau

Re: Database management commands

2011-10-27 Thread Daniele Procida
On Thu, Oct 27, 2011, Tom Evans wrote: >On Thu, Oct 27, 2011 at 12:33 PM, Daniele Procida wrote: >> I keep getting errors like this: >> >> _mysql_exceptions.OperationalError: (1005, "Can't create table >'arkestra_medic_dev.#sql-51b_4a8' (errno: 1

Database management commands

2011-10-27 Thread Daniele Procida
I keep getting errors like this: _mysql_exceptions.OperationalError: (1005, "Can't create table 'arkestra_medic_dev.#sql-51b_4a8' (errno: 150)") when running database management commands (syncdb, south migrate). Sometimes those commands work, sometimes they don't; it happens across a variety o

Info and warning messages in admin

2011-06-27 Thread Daniele Procida
I need to be able to distinguish between info and warning messages that get passed to the user in admin. I do this, and it works: # import the admin messages framework from django.contrib import admin, messages class SomeForm(forms.ModelForm): ... def clean(self): # create a pai

DjangoCon.eu tickets

2011-04-23 Thread Daniele Procida
Tickets are sold out - to my horror, because I've bought my tickets for travel, having finally persuaded my employer to let me attend. They must have sold out shortly after I bought my travel tickets, because they were available when I bought them. I've applied to be on the waiting list, but if a

The correct way to send messages

2011-02-08 Thread Daniele Procida
In the clean() of an admin form I want to give the user some warnings. So this is what I do in the admin - class SomeForm(forms.ModelForm): class Meta: model = SomeModel def clean(self): self.warnings = [] self.warnings.append("Warning: you seem to be confused.")

Re: Unrelated Inline admin objects

2009-11-01 Thread Daniele Procida
On Sun, Nov 1, 2009, Karen Tracey wrote: >> But what if there were no relation? How does the admin know which inline >> items belong to it? >> >> >You can't list an unrelated model inline with another. I believe you'll get >an error about no ForeignKey pointing to the parent model existing in t

Unrelated Inline admin objects

2009-11-01 Thread Daniele Procida
Every example discussing inline admin objects invovles (naturally) models that are related to one another, for example, a books model placed inline on an authors model admin: But what if there were no relation? H

Re: How to update a ManyToManyField in a model's custom save method

2009-09-24 Thread Daniele Procida
On Wed, Sep 23, 2009, M Godshall wrote: > >I have a Project model with a ManyToManyField called "members" to keep >track of members of a project. Whenever the model is updated, I need >to check if certain members need to be removed from or added to the >m2m field. I am trying to do exactly th

Re: overriding save() for ManyToManyFields

2009-09-24 Thread Daniele Procida
On Thu, Sep 24, 2009, Daniele Procida wrote: >>So, given a obj = Referrer("foo"), updating its many-to-many field can >>happen only after obj.save() returns (this is documented in >>http://www.djangoproject.com/documentation/models/many_to_many/ ). >> >

Re: overriding save() for ManyToManyFields

2009-09-24 Thread Daniele Procida
On Thu, Sep 24, 2009, mrts wrote: >So, given a obj = Referrer("foo"), updating its many-to-many field can >happen only after obj.save() returns (this is documented in >http://www.djangoproject.com/documentation/models/many_to_many/ ). > >If you are not able to call obj.save() and then manually u

Re: overriding save() for ManyToManyFields

2009-09-23 Thread Daniele Procida
On Wed, Sep 23, 2009, mrts wrote: >> So, obviously I need another stage, to save the many-to-many relations >> once theo bject is saved. > >Call super(Event, self).save(), then update the many-to-many >relations. Don't I need to run some sort of save for those? Otherwise, what happens to the at

overriding save() for ManyToManyFields

2009-09-23 Thread Daniele Procida
My model has a save() override, in which a number of attributes (which are ManyToManyFields) need to get their values from the object's parent: def save(self): if self.parent: attribute_list = ['publishing_destinations', 'registration_enquiries', 'speakers', 'related_peopl

Re: limit_choices_to

2009-08-01 Thread Daniele Procida
On Sat, Aug 1, 2009, Ramiro Morales wrote: >If you need this for the admin app and are using Django 1.1 read about >the formfield_for_foreignkey ModelAdmin method: > >http://docs.djangoproject.com/en/dev/ref/contrib/admin/ >#django.contrib.admin.ModelAdmin.formfield_for_foreignkey > >you can wri

limit_choices_to

2009-08-01 Thread Daniele Procida
I am trying to set up a model. A Person has a ManyToMany relationship with Entities. One of those relationships is special - we can capture that with a ForeignKey relationship to Entity. But, I want to limit the choices for that special relationship to Entities that the person already has a rel

Making Django ldapauth more sophisticated

2009-07-20 Thread Daniele Procida
I finally have ldapauth working now, and a user who is in our LDAP database can connect as a Django User. But it's not entirely satisfactory. Before the LDAP user becomes a Django User they have to try logging (which fails of course). Then they become a Django User, and then they can have their p

Django and LDAP

2009-07-18 Thread Daniele Procida
Some time ago, I successfully managed to get Django LDAP authentication working. I used the patch at: Now for the life of me I can't repeat my success. Perhaps someone can remind me how I should expect this to work. If I have set up LD

  1   2   >