|
Is django-tagging still the best tagging extension? A google search brings up a lot of blogs that would assume it still is, but the latest official version doesn't even support 1.0.
|
# ? Apr 29, 2009 18:52 |
|
|
# ? Jun 8, 2024 07:28 |
|
nbv4 posted:Is django-tagging still the best tagging extension? A google search brings up a lot of blogs that would assume it still is, but the latest official version doesn't even support 1.0. Works pretty well for me, and it has a nice tag cloud template tag that it comes with that works well for my needs
|
# ? Apr 29, 2009 20:29 |
|
No Safe Word posted:Works pretty well for me, and it has a nice tag cloud template tag that it comes with that works well for my needs Yeah I used it on an abandoned project that I'm going back to. I don't know whether I should dump it and use my own code, or use it and run the risk of having to dump it later on when it no longer works in django due to it being abandoned.
|
# ? Apr 29, 2009 21:46 |
|
Ok guys I'm having a heard time wrapping my head around the model formsets. Here is my model: code:
"IndexError (list index out of range)" code:
|
# ? May 6, 2009 06:53 |
|
The screen shot is from the "edit" page of this model: code:
code:
code:
|
# ? May 8, 2009 01:31 |
|
nbv4 posted:My problem is that everytime I want to edit a Position object, it complains if I leave the three inline PosBase objects empty. I have two other inlines on other models that are just ignored when you try to save the object with blank inlines. I can't figure out why it's doing this. I tried changing around "blank=True, null=True" in the ForeignKey fields, but all that seems to do it cause a totally blank object to be saved and then linked to the parent object. What the heck... Try getting rid of the default=0.
|
# ? May 8, 2009 02:12 |
|
deimos posted:Try getting rid of the default=0. hoooooly balls that worked. I had no idea defautl=0 was causing that. Thanks.
|
# ? May 8, 2009 02:40 |
|
nbv4 posted:hoooooly balls that worked. I had no idea defautl=0 was causing that. Thanks. Well, I bet if you went to the trouble of changing "unknown" and "not hiring" to the "------" entries on each of those drop-downs it would work too. It sees a partially completed entry and assumes you intended to complete it so it's letting you know which fields in those partially completed entries need to be filled in to complete them.
|
# ? May 8, 2009 02:47 |
|
nbv4 posted:Is django-tagging still the best tagging extension? A google search brings up a lot of blogs that would assume it still is, but the latest official version doesn't even support 1.0. Here's a nice jquery addition that'll give you an auto-complete dropdown for tag fields: http://jannisleidel.com/2008/11/autocomplete-widget-for-django-tagging-form-fields/ I took this and modified it a bit to be an inclusion templatetag so that I could apply it to front-end tag fields easily.
|
# ? May 8, 2009 02:56 |
|
Anal retentive question: what editors support the syntax highlighting for an HTML view with the {% %} tags? I'm using PyDev currently, though I only defaulted to that because I use Eclipse so much at work. I'm open to other editors if Eclipse can't handle that syntax.
|
# ? May 8, 2009 17:22 |
|
Ansible posted:It's a webapp and I freakin love it. Here is a hosted version but it's also very small and you can throw it on your own space pretty easily: Thank you so much for sharing this. This is the most useful, free database designer I have ever used.
|
# ? May 8, 2009 18:16 |
|
Ferg posted:Anal retentive question: what editors support the syntax highlighting for an HTML view with the {% %} tags? I'm using PyDev currently, though I only defaulted to that because I use Eclipse so much at work. I'm open to other editors if Eclipse can't handle that syntax. vim supports the django template syntax
|
# ? May 8, 2009 19:06 |
|
How do you get access to objects linked from ForeignKey and ManyToMany fields within the parent object? here is my model: code:
|
# ? May 11, 2009 04:40 |
|
nbv4 posted:How do you get access to objects linked from ForeignKey and ManyToMany fields within the parent object? Not sure if you've asked the right question since the correct answer is right in your snippet: self.points.all()
|
# ? May 11, 2009 07:11 |
|
jupo posted:Not sure if you've asked the right question since the correct answer is right in your snippet: self.points.all() Yeah I just got it working. It was something else causing the error. Now I'm having another similar problem: code:
|
# ? May 11, 2009 08:13 |
|
nbv4 posted:Yeah I just got it working. It was something else causing the error. Now I'm having another similar problem: Missing a % operator between your Unicode string and what you intended to be the values interpolated into it. Thus it thinks the tuple of variables is actually you doing "mystring"(lol) which is syntax for trying to call a callable object.
|
# ? May 11, 2009 12:42 |
|
No Safe Word posted:vim supports the django template syntax Is there any particular vimrc options that need to be set for this? Anything between {% %} tags is just standard text color, including the tags themselves. Edit: Nevermind, found this; http://www.vim.org/scripts/script.php?script_id=1487 Ferg fucked around with this message at 18:08 on May 11, 2009 |
# ? May 11, 2009 18:04 |
|
For any newbies out there with some python knowledge the Django 1.0 Template Development book is absolutely amazing. Don't just browse it, READ IT. It's very in depth but easy to follow if you read the whole thing. Ohh, and it's not just about Templates, it covers pretty much everything django. edit: forgot to mention: it's not quite as easy on the newbie as bitpropbhet's, nor as broad on subjects. But it covers some nuances that are very important to a django developer, I have learned a LOT from it. bitprophet posted:Did you mean me? I think bitkeeper is the "savagely optimized" guy. eek, yeah I did, pretty sure I confused your name with the software product, didn't really feel like looking it up, sorry. deimos fucked around with this message at 21:02 on May 28, 2009 |
# ? May 28, 2009 02:49 |
|
deimos posted:edit: forgot to mention: it's not quite as easy on the newbie as bitkeeper's, nor as broad on subjects. Did you mean me? I think bitkeeper is the "savagely optimized" guy.
|
# ? May 28, 2009 12:44 |
|
Ansible posted:Still a bit stuck on this but think I'm on the right track using model manager: What are you doing your UML in? edit: Oh yeah, I found a python script once that transformed dia UML into django models. Bit clunky, but it worked!
|
# ? May 28, 2009 13:00 |
|
duck monster posted:What are you doing your UML in? This?: http://ondras.zarovi.cz/sql/demo/.
|
# ? May 28, 2009 16:46 |
|
bitprophet posted:Did you mean me? I think bitkeeper is the "savagely optimized" guy. Have you read Scott's book? I made work buy your django book and read through it but haven't had time to really read it through except for some of the more advanced parts, and Marty's book which is equally awesome and metaclassy as gently caress.
|
# ? May 28, 2009 21:04 |
|
deimos posted:Have you read Scott's book? I made work buy your django book and read through it but haven't had time to really read it through except for some of the more advanced parts, and Marty's book which is equally awesome and metaclassy as gently caress. Sadly I haven't had the chance to read either of them in no small part because I just haven't been doing much Django lately, instead doing sysadmin stuff and Rails at work, and Fabric outside of work. I sorta-know Marty and I'm sure his book is awesome, don't know Scott at all but it sounds like I should see if it's in my Safari subscription
|
# ? May 29, 2009 01:53 |
|
I currently have Client, Printer, Cartridge, and Order models. The Printer model has a ManyToManyField to the Cartridge model, which would allow you to select all the cartridges that can be used with that printer. The Cliente has a ManyToManyField to the printers which they own. I want to create an Order through the Django Admin which lets your specify the Client, a dicount, and multiple cartridges through a ManyToManyField. This is getting kinda tricky because I have to do it through another table that specifies whether it's a new Cartridge or a refill. I want the admin to filters the Cartridges to only show the ones that belong to the printers that they own. Also I would like to have a field that holds the total price of their order, but it should calculate it based on how many cartridges they have added to the order. I don't know if this should be done by adding more of the same cartridge to the order or by having another field in the through table that specifies the quantity. Can this be done in the admin or do I need to use a form? And if so how would I go about adding this to the admin? It seems difficult and probably something I will have to do in multiple parts since in order to filter the list of cartridges I have to know the client beforehand. Janitor Prime fucked around with this message at 16:37 on May 29, 2009 |
# ? May 29, 2009 03:30 |
|
Anyone have any experience/recommendations for django forums?
|
# ? Jun 2, 2009 14:54 |
|
my stepdads beer posted:Anyone have any experience/recommendations for django forums? There's a slightly out of date wiki on Django projects http://code.djangoproject.com/wiki/ForumAppsComparison
|
# ? Jun 2, 2009 22:55 |
|
my stepdads beer posted:Anyone have any experience/recommendations for django forums? I've used http://pybb.org/ on a couple of projects and it's great. It's essentially a clone of phpbb as a Django app.
|
# ? Jun 3, 2009 00:07 |
|
Cheers guys. I'd been leaning towards pybb.
|
# ? Jun 4, 2009 02:34 |
|
So, here's the code, first:code:
So, how do I do this? I've gotten myself into this mess but can't seem to get myself out of it. Thanks.
|
# ? Jun 8, 2009 21:06 |
|
code:
|
# ? Jun 8, 2009 21:13 |
|
django now runs on Glassfish V3. Huzzah. Now there's no platform left to escape the power of django.
|
# ? Jun 8, 2009 21:38 |
|
Thanks a ton, Janin. That works great.
|
# ? Jun 8, 2009 21:56 |
|
MonkeyMaker posted:Now, this works fine if I want to do bellschedule.first.start_time, bellschedule.first.end_time, etc. I don't want to do that most of the time. I'd rather be able to do "for period in bellschedule.periods" and just iterate through them. How about : code:
You can then use the "extra" and "max_num" arguments for your inline formsets wherever the data is managed, either the admin or your own formsets.
|
# ? Jun 9, 2009 06:54 |
|
Thanks, jupo, I'll give that a try too. On these same models, I need to associate a set of classes and their teacher to a given bell schedule and I'm pretty lost on trying to figure it out. Any ideas/help?
|
# ? Jun 10, 2009 03:59 |
|
deimos posted:django now runs on Glassfish V3. Huzzah. Now there's no platform left to escape the power of django. I've always wanted to enhance my Django experience with the joys of configuring a mindfuckingly huge number of complicated XML files.
|
# ? Jun 10, 2009 07:37 |
|
duck monster posted:I've always wanted to enhance my Django experience with the joys of configuring a mindfuckingly huge number of complicated XML files. Actually, I haven't had to touch an XML file on our glassfish servers since... ohh... never. It has a very sexy web-based administrator. Also, setting up a dynamic language site is stupid easy, all you have to do is declare a new container and tell it it's gonna be python/ruby/whatever and configure a couple more variables and huzzah, django. It's actually easier than configuring apache. caveat; I haven't done anything more than get it up and running, haven't actually transfered a decently sized django to glassfish and tested. Also, our glassfish cluster has a person that maintains it.
|
# ? Jun 10, 2009 16:07 |
|
MonkeyMaker posted:Thanks, jupo, I'll give that a try too. It's hard to say without a full picture of what you're trying to achieve. It looks like you've got a basic understanding of managing related data via models. Based on the little info you've given and extending off the previous example: code:
|
# ? Jun 10, 2009 23:59 |
|
jupo posted:It's hard to say without a full picture of what you're trying to achieve. It looks like you've got a basic understanding of managing related data via models. Based on the little info you've given and extending off the previous example: Thanks for the help but it's definitely more complex than that, I think. OK, let me try to break this down: Schools have multiple teachers and may have multiple bell schedules (different day types [a, b, block, etc]) Teachers have multiple classes, obviously, and can have multiple class schedules (see the above bell schedules for the idea) Obviously teachers at the same school share bell schedules and their periods and may share classes, but I don't care TOO much about optimizing that right now. Here's my start and it seems to be working in the shell: code:
|
# ? Jun 11, 2009 00:17 |
|
Pants down lads, its time to start whacking off http://www.optaros.com/blogs/alfresco-django-integration-now-available-google-code poo poo just got very loving pro. Want to offer your client the ability to edit his site in loving word , and synch it to your django site using the native sharepoint menus? Congratulations champ, you just got a pay rise!
|
# ? Jun 13, 2009 19:32 |
|
|
# ? Jun 8, 2024 07:28 |
|
duck monster posted:Pants down lads, its time to start whacking off This really is brilliant. One of the biggest hurdles the company I work for have faced with Django is actually selling it to clients due to how relatively unknown it is. I've honestly never heard of Alfresco before but looking at their client base this is just the kinda thing we need to pitch Django at an "enterprise" (I just threw up a little) level.
|
# ? Jun 15, 2009 01:23 |