Re: Create ModelForms to create ModelForms

2017-08-02 Thread bobhaugen
We're using Fobi in https://github.com/FreedomCoop/valuenetwork Works pretty well. Does what it promises. Dev has been responsive to issues. On Wednesday, August 2, 2017 at 5:55:21 AM UTC-5, Thiago Luiz Parolin wrote: > > Hi, > Try using this app: > Django-fobi

Re: django-cruds-adminlte 0.0.4 is out

2017-05-10 Thread bobhaugen
On Tuesday, May 9, 2017 at 1:04:41 PM UTC-5, Óscar M. Lage wrote: > > I would like to say that django-cruds-adminlte 0.0.4 is out ( > https://github.com/oscarmlage/django-cruds-adminlte). We're requesting > for collaboration but if not (dunno what happens, maybe the goal of the > project is not

Re: Testing a Django library

2017-03-21 Thread bobhaugen
Very interesting topic. We will be facing the same problem soon, and will hope to learn from your experience. Got a code repository yet? We're at https://github.com/django-rea If and when we have some good answers, I'll report back here. -- You received this message because you are subscribed

Re: Request for advice on refactoring a big Django project

2017-03-07 Thread bobhaugen
half an hour, you'll get it". >> >> >> >> Likewise, it would have been way better to include your original >> message >> >> in >> >> the reply. In order to find your original message I had to dig in my >> >> Trash >> >&

Re: Request for advice on refactoring a big Django project

2017-03-06 Thread bobhaugen
I was disappointed to get no response on this topic, and would be grateful for any feedback on why that might have been. Too big? Big ball of mud? Stupid project? ? (I have very little touchiness...) I hope people did not think we wanted to get them to do all or even very much work for

Request for advice on refactoring a big Django project

2017-02-23 Thread bobhaugen
Dear Django people, We are working on an open-source Django system that has grown both in terms of user and developer communities and also size of code base. It is in production with 370 users that we know of. It has several names, but one is NRP, which stands for Network Resource

Re: Moving from django 1.3 to 1.9

2017-01-27 Thread bobhaugen
I agree with all the advice to go a step at a time. Here's a bunch of clues and chatter in github issues about how we upgraded from 1.4 to 1.8, one minor version at a time. https://github.com/FreedomCoop/valuenetwork/issues?q=is%3Aclosed+label%3Aupgrade -- You received this message because

Re: Maintaining old django code

2016-09-06 Thread bobhaugen
We migrated a huge codebase from 1.4 to 1.8 like this: https://github.com/FreedomCoop/valuenetwork/issues?q=is%3Aissue+is%3Aclosed+label%3Aupgrade Might give you some clues. Short version: one release at a time. -- You received this message because you are subscribed to the Google Groups

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-19 Thread bobhaugen
t 05:02:39AM -0700, bobhaugen wrote: > > > On Friday, August 19, 2016 at 5:20:45 AM UTC-5, Michal Petrucha wrote: > > > These questions remain unanswered, although I intend to do a bunch > more > > > testing: > > > > > >1. How pervasiv

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-19 Thread bobhaugen
On Friday, August 19, 2016 at 7:38:45 AM UTC-5, Michal Petrucha wrote: > > Honestly, I'm not sure what exactly you're asking here. Your > implementation of ``with_user`` was hard-wiring a queryset filter > based on the state of the database at the time ``with_user`` was > called. The rest is

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-19 Thread bobhaugen
On Friday, August 19, 2016 at 5:20:45 AM UTC-5, Michal Petrucha wrote: > > Could you show us the code of with_user? Maybe it does not return an > unevaluated queryset? > > def with_user(self): all_agents = EconomicAgent.objects.all() ua_ids = [] for agent in

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-18 Thread bobhaugen
you would like to change it > dynamically > > 18 серп. 2016 22:14 "bobhaugen" <bob.h...@gmail.com > пише: > >> Also, how pervasive is this behavior? Does it affect all querysets >> generated by model methods? I do that all over the place. This could be bug

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-18 Thread bobhaugen
Also, how pervasive is this behavior? Does it affect all querysets generated by model methods? I do that all over the place. This could be bug heaven! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-18 Thread bobhaugen
Looks like it works if I "specify queryset=None when declaring the form field and then populate the queryset in the form’s__init__() method:" Does that make sense to you? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-18 Thread bobhaugen
On Thursday, August 18, 2016 at 1:34:29 PM UTC-5, Tim Graham wrote: > > I'd guess you're doing a query for the form field's choices at the module > level which will be executed once and cached for as long as the server > runs. See if >

Odd problem: some database updates do not appear on other pages until server restart

2016-08-18 Thread bobhaugen
I'm running django 1.8.14, I have an odd problem, that I have reproduced both locally using runserver and sqlite, and also using Apache with Postgres. I create a new model instance on one page, and go to another page where that same object should appear in a form selection list. It does not.

Re: Django 1.8.13 saving new user gets error NOT NULL constraint failed: auth_user.last_login

2016-07-21 Thread bobhaugen
proceed to migrate it. > > Simon > > Le jeudi 21 juillet 2016 11:46:37 UTC-4, bobhaugen a écrit : >> >> NOT NULL constraint failed: auth_user.last_login >>> >>> >>> >> This is a new user. Why should it have a last_login value? >> >>

Django 1.8.13 saving new user gets error NOT NULL constraint failed: auth_user.last_login

2016-07-21 Thread bobhaugen
> > NOT NULL constraint failed: auth_user.last_login > > > This is a new user. Why should it have a last_login value? I coded around it by giving the new user a fictitious last_login value, but still... -- You received this message because you are subscribed to the Google Groups "Django

Re: Migrating an unmigrated database from 1.6 to 1.7

2016-07-07 Thread bobhaugen
Thank you all for all your suggestions and your quick responses. I think the 1.6-South idea would work, and likewise adding the field by hand using SQL. Problem with sqlmigrate is that all we got now is the initial migration, with all the fields. We don't have a django migration for the new

Migrating an unmigrated database from 1.6 to 1.7

2016-07-07 Thread bobhaugen
We're upgrading an app from django 1.4 step-by-step through all the versions at least to 1.8. Got a self-inflicted problem with the new migrations in 1.7. Before we went to 1.7, we added a new field to a model, and migrated the db using South. Then when we went to 1.7, we restarted all the

Re: Hi - I'm new to Python and DJango

2016-06-13 Thread bobhaugen
On Thursday, June 2, 2016 at 9:30:46 AM UTC-5, luisza14 wrote: > > > There is some development in ERP but nothing stable or usable (not that I > known). > > So if you are interested in develop something could be great know about. > > This is NRP (Network Resource Planning), not ERP, but it

Re: Django API CSRF Issues - Need Help

2016-05-21 Thread bobhaugen
Chris, I understood you were logged into the django system when you tried these posts. Correct? I thought that would cover authentication thru DRF. But I am also a noob to Javascript client post -> DRF server. -- You received this message because you are subscribed to the Google Groups

Re: Migrating older 1.4 project to 1.9

2016-03-30 Thread bobhaugen
We feel your pain. If you do it, and write down how it goes, we would be grateful. https://github.com/valnet/valuenetwork On Tuesday, March 29, 2016 at 4:19:59 PM UTC-5, Roger Dunn wrote: > > I've inherited a moderately large project written 2 years ago using Django > 1.4, and wondering if it

Re: Django Forms vs Angularjs

2016-03-22 Thread bobhaugen
Maybe you already know this, but you can do a lot of form tinkering in __init__, like so: def __init__(self, permissions_parameter=None, *args, **kwargs): super(FormName, self).__init__(*args, **kwargs) if permissions_parameter: #do a bunch of form tinkering --

Re: Django Forms vs Angularjs

2016-03-19 Thread bobhaugen
Questions interspersed below: On Friday, March 18, 2016 at 11:38:59 AM UTC-5, Gorkem Tolan wrote: > > I am a new comer to Django. Last four weeks I have been working on web > application purely created with Django framework. > I realized that Django forms are very cumbersome to use. > What is

Re: Scaling Django

2016-02-04 Thread bobhaugen
This is a sidelight to the OP, but he did mention django forms in one message. They are a dog. I have profiled a couple of slow pages with a lot of small forms and that's where all the time was spent (rendering forms on the server). We're moving those to DRF-serving-json to a javascript

Re: Windows browser vs Django app running on Ubuntu in a VirtualBox

2015-12-06 Thread bobhaugen
rnal address instead, use "./manage.py > runserver 192.168.56.101:8000" and then it will work. Or "0.0.0.0:8000" > to listen to all interfaces. > > Greetings, > Remco Gerlich > > On Sat, Dec 5, 2015 at 10:07 PM, bobhaugen <bob.h...@gmail.com &

Windows browser vs Django app running on Ubuntu in a VirtualBox

2015-12-05 Thread bobhaugen
Our friend Chris Troutner installed our Django 1.4 app on Windows in a VirtualBox running Ubuntu. He could access the Django app from the browser in Ubuntu, but not from the Windows browser. He writes: - While you can access the front end in the Ubuntu VM, you can't access it from the

Re: Timer for online examination

2015-11-18 Thread bobhaugen
That should have been runTimer and retryTimer On Tuesday, November 17, 2015 at 7:43:02 AM UTC-6, bobhaugen wrote: > > On Tuesday, November 17, 2015 at 12:29:02 AM UTC-6, Arindam sarkar wrote: >> >> I am developing an online examination website. And having difficulty >>

Re: Timer for online examination

2015-11-17 Thread bobhaugen
On Tuesday, November 17, 2015 at 12:29:02 AM UTC-6, Arindam sarkar wrote: > > I am developing an online examination website. And having difficulty > implementing the timer . > Any one have done it or something related to countdown timer in django ? > > Here is an example of what everybody is

Re: How to develop a frontend web app for using REST services

2015-10-18 Thread bobhaugen
krmane, are you posting these same questions in the REST framework forum? I'm guessing they would like a SQLAlchemy plugin. Unlike you, however, I like their documentation, and have found the DRF gang to be responsive to issues. That being said, I haven't actually used it in production yet.

Re: is Django right choice for a financial app

2015-10-12 Thread bobhaugen
krmane, google is misbehaving and will not allow me to reply to your reply to me, so I'll fake it and do some cutnpasting. You wrote: > I did not get the react concept. https://facebook.github.io/react/ I wrote: We use the django ORM, not sqlalchemy, but that would probably just make it all

Re: is Django right choice for a financial app

2015-10-12 Thread bobhaugen
On Sunday, October 11, 2015 at 10:33:03 PM UTC-5, krmane wrote: > > The said project is an enterprise accounting (book keeping ) system. > It is not mere dynamic content such as that served by news rooms (the > very foundation of Django's origin ). > It is going to be lot of dynamic views which

Re: Django deployment

2015-09-16 Thread bobhaugen
You gotta give PHP credit here. They did deployment better than anybody. Django as a community could stand to put more concentrated work into deployment. On Tuesday, September 15, 2015 at 3:27:49 PM UTC-5, Nikolas Stevenson-Molnar wrote: > > I second the nginx/gunicorn/django/supervisor stack.

Re: Turn off migrations completely in Django 1.7

2015-08-25 Thread bobhaugen
I agree that migrations should be optional, for all the reasons listed in this thread, but hope it doesn't now turn into a religious war between models-first and database-first. Not relevant to the issue. > > -- You received this message because you are subscribed to the Google Groups

Re: 'admin/index.html' does not exist

2015-08-13 Thread bobhaugen
Tried another install using pip 7.1.0 on another computer, ubuntu 12.04, and django installed only once, in vn/lib/python2.7/site-packages, with its templates etc intact. So I don't know what happened the previous time. We just fixed it by moving the files on the 14.04 box, so it's not an

'admin/index.html' does not exist

2015-08-13 Thread bobhaugen
TemplateDoesNotExist at /admin/ admin/index.html Created a new virtualenvironment. pip install Django==1.4.21 Pip installs two django directories. One in the base virtualenv directory (e.g vn/django), another in vn/lib/python2.7/site-packages. The in the base virtualenv directory has

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-05-16 Thread bobhaugen
I've gotten this error now and then when I have updated the software on a webfaction-hosted site and restarted Apache. Then it goes away after maybe a couple more restarts. It's like the software has not quite gotten itself together yet. I have no idea why this should be, and since it goes

Re: Django Admin should really support Twitter Bootsrap

2015-04-15 Thread bobhaugen
On Monday, April 13, 2015 at 5:16:40 PM UTC-5, Patrick Lemiuex wrote: > > It's about time, the django admin tool should support twitter bootstrap > markups and styling. This is the third django project where I've had to > deal with custom form widgets because the admin tool supports kind of an

Re: A sample project showing server side rendering with React and Django

2015-01-26 Thread bobhaugen
...;-) On Monday, January 26, 2015 at 10:14:33 AM UTC-6, Ustun Ozgur wrote: > > Hi Bob, > > On Sunday, January 25, 2015 at 5:52:00 PM UTC+2, bobhaugen wrote: >> >> Ustun, >> >> Please say more about the advantages? As in, what can you do by adding a >> n

Re: A sample project showing server side rendering with React and Django

2015-01-25 Thread bobhaugen
and React.js on the client? And why you would not just want to bite the bullet and use node.js instead of django in the first place? On Sunday, January 25, 2015 at 9:41:33 AM UTC-6, Ustun Ozgur wrote: > > > > On Sunday, January 25, 2015, bobhaugen <bob.h...@gmail.com > > wrote: >

Re: A sample project showing server side rendering with React and Django

2015-01-25 Thread bobhaugen
Ustun, do you think it is necessary to use a node.js server to interact with react.js on the client side? Seems like a lot of added complexity. But I could be missing something important... On Saturday, January 24, 2015 at 7:13:56 AM UTC-6, Ustun Ozgur wrote: > > Last year I gave a conference

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-10-30 Thread bobhaugen
On Wednesday, October 29, 2014 12:26:01 PM UTC-5, Chris Hawkes wrote: > > All this being said, there is definitely a trend towards SPA's. > > Does anybody else besides me hate the SPA trend? I much prefer apps that are separated into logical components where each component has its own URL,

Re: Re: Upgrading Django (to 1.7)

2014-09-28 Thread bobhaugen
Inc -- http://bristle.com -- Glad to be of service! > Open Source: Without walls and fences, we need no Windows or Gates. > -- > > On 9/27/14 10:00 AM, bobhaugen wrote: > > The problem we ran into was not with the order of migrations, it was that > all of

Re: Upgrading Django (to 1.7)

2014-09-27 Thread bobhaugen
The problem we ran into was not with the order of migrations, it was that all of the migrations were running with the latest models.py code. The data migration was trying to move data from one model field to another model field, and the "from" field had been deleted from models.py. This was

Re: Upgrading Django (to 1.7)

2014-09-26 Thread bobhaugen
Andrew, thanks for the article, and the more-to-come. When you get to data migrations, you might want to cover a problem I ran into with them: when I had a data migration in the middle of a sequence of other migrations, and then later wanted to set up a new environment, which meant running all

Re: Slow page load performance with a large number of formsets (over 25)

2014-09-21 Thread bobhaugen
We have had the same problem, but with a large number of forms. I have profiled the situation and the load time is dominated by form rendering on the server. I remember vaguely something about caching forms so they don't need to be re-rendered, but can't find it now. And I don't understand

Re: loaddata not looking for natural keys

2014-03-24 Thread bobhaugen
Ok, problem resolved. I must have done something else wrong the last time I did loaddata, because I tried the whole sequence again with the natural_keys as tuples, and it all worked. Sorry to bother the list so much. But to summarize, natural_keys must be tuples, not single unicode values.

Re: loaddata not looking for natural keys

2014-03-24 Thread bobhaugen
Not a tuple, it's now a json array. (Still not seeing things accurately...) So I would think it would deserialize with __iter__, but I still get the same deserialization error message. On Monday, March 24, 2014 8:38:52 AM UTC-5, bobhaugen wrote: > > Got a clue. I re-read the doc and i

Re: loaddata not looking for natural keys

2014-03-24 Thread bobhaugen
Got a clue. I re-read the doc and it says the natural key value must be a tuple. Missed that before. So I changed it like this: def natural_key(self): return (self.name,) In the shell, that properly returns a tuple: (u'Cash Contribution',) But in the dumpdata results, it is not

Re: loaddata not looking for natural keys

2014-03-23 Thread bobhaugen
Ok, now I am really confused. Here's the code where the error originates in django/core/serializers/python.py: # Handle FK fields elif field.rel and isinstance(field.rel, models.ManyToOneRel): if field_value is not None: import pdb;

Re: loaddata not looking for natural keys

2014-03-22 Thread bobhaugen
Oh, and I am using Django 1.4.5. -- 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, send email to

loaddata not looking for natural keys

2014-03-22 Thread bobhaugen
loaddata error message: File "/home/bob/.virtualenvs/vn2/lib/python2.6/site-packages/django/core/serializers/json.py", line 47, in Deserializer raise DeserializationError(e) DeserializationError: [u"'Cash Contribution' value must be an integer."] Here's how I dumped the data:

Re: Using Django without templates?

2014-02-28 Thread bobhaugen
On Thursday, February 27, 2014 8:37:45 PM UTC-6, somecallitblues wrote: > You do have to be careful with templates if you're using too many > inclusions or if you have too much logic in them. There's a good django > debug toolbar add-on that informs you about the time a template takes to >

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-29 Thread bobhaugen
I think I agree with James (below). I'm about to graft a javascript MVC library or framework on top of a Django server, to make up for some problems with Django templates and forms. Haven't done it yet, but need to do something different. So I may come back here and repent...;) I have worked

Re: How to automatically test Django apps

2013-12-17 Thread bobhaugen
That's interesting, but how about making it free for open-source apps who give you a credit on their repos? On Tuesday, December 17, 2013 1:26:05 AM UTC-6, Michael Herrmann wrote: > > On Monday, December 16, 2013 1:54:01 PM UTC+1, rush wrote: >> >> >> According to

Re: How to test django app

2013-11-20 Thread bobhaugen
Recommend: https://pycon-2012-notes.readthedocs.org/en/latest/testing_and_django.html http://webtest.pythonpaste.org/en/latest/ -- 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,

Re: client side tests

2013-07-15 Thread bobhaugen
Any current faves for client-side testing that do not require Java? > > -- 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

Re: Data Structure - Orders and multiple items

2013-04-02 Thread bobhaugen
There's a reason ERP systems have an order detail table. It might look something like: class OrderDetail(models.Model): order = models.ForeignKey(Order) item = models.ForeignKey('Item') quantity = models.DecimalField(max_digits=8, decimal_places=2) etc. (That's just to

Re: Django project - Allow users to write a custom function and store in DB

2013-02-15 Thread bobhaugen
I found this useful in doing something like that: http://lybniz2.sourceforge.net/safeeval.html http://effbot.org/zone/librarybook-core-eval.htm -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Problems doing ajax post with ImageField

2013-02-10 Thread bobhaugen
Here's the relevant parts of the model: class Resource(models.Model): photo = ThumbnailerImageField(_("photo"), upload_to='photos', blank=True, null=True) This works fine in admin and with regular form posts. Trying to use jquery.post in one situation to post a photo without

Re: Object level permissions implementation

2013-02-06 Thread bobhaugen
I'm not sure this is the best way to do it, but for what I think is a similar situation, I created a template tag and a model instance method. The template tag asks the model instance method whether the user has permission. Here's the template tag:

Re: getting "DateTimeField received a naive datetime" error but have no DateTimeFields

2012-12-18 Thread bobhaugen
Tom, thank you for that very useful tip! My feeble python-fu has now been strengthened. On Monday, December 17, 2012 8:27:28 AM UTC-6, Tom Evans wrote > > > Following the thread I see that you have figured out where and why > this is coming from. There is a simple tip you can use to speed this

Re: getting "DateTimeField received a naive datetime" error but have no DateTimeFields

2012-12-16 Thread bobhaugen
Wrapping this up: the problem was caused by South, happened in migrate (found via stack trace). When I upgraded South, the problem went away. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: getting "DateTimeField received a naive datetime" error but have no DateTimeFields

2012-12-14 Thread bobhaugen
Oh, and Django 1.4.1...sorry. On Friday, December 14, 2012 1:43:09 PM UTC-6, bobhaugen wrote: > > Thanks for the reply. > > On Friday, December 14, 2012 1:27:03 PM UTC-6, Chris Cogdon wrote: >> >> Would be nice to know what function's raising that error, and where

Re: getting "DateTimeField received a naive datetime" error but have no DateTimeFields

2012-12-14 Thread bobhaugen
Thanks for the reply. On Friday, December 14, 2012 1:27:03 PM UTC-6, Chris Cogdon wrote: > > Would be nice to know what function's raising that error, and where the > value came from. Requesting traceback, database type (tried it with more > than one database type), and other information. > >

getting "DateTimeField received a naive datetime" error but have no DateTimeFields

2012-12-14 Thread bobhaugen
RuntimeWarning: DateTimeField received a naive datetime (2012-12-14 17:39:38.878379) while time zone support is active. This is happening in my tests, but not in normal code. >From dropping a trace in, it looks like it is happening before the test setup even runs. I double-checked my models,

Re: Lab notebook in Django?

2012-11-28 Thread bobhaugen
Michele, Thanks a ton! Checking it out... -Bob -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/3RCTBWPM-zQJ. To post to this group, send email to

Lab notebook in Django?

2012-11-28 Thread bobhaugen
Anybody made a lab notebook in Django? Or do any of the authors or users of any other Django package (maybe one of the CMS's) think their fave would be good for creating a lab notebook? Or does anybody else have ideas for, or interest in, a Django lab notebook app? (To be open source, for

Re: perfectionists... motto doesn't fit

2012-10-12 Thread bobhaugen
On Friday, October 12, 2012 7:56:52 AM UTC-5, Russell Keith-Magee wrote: > The reason I jumped on this was pre-emptive. We've had two threads on > Django-dev in a week, started by the same OP, which have quickly > degraded into *very* ugly territory. As Jacob has commented on the > other

Re: ANN: eGenix mxODBC Connect - Python Database Interface 2.0.1

2012-09-26 Thread bobhaugen
I like to get open-source project announcements that are relevant to Django, but am not interested in commercial products. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: ANN: Maymyo Business Application Infrastructre Beta 0.3.3

2012-09-20 Thread bobhaugen
Gaah! I just re-read my message about Maymyo and if it was from somebody else, I would think they were related to the project and shilling, or else trying to selling the OP something. I'm not, really. This is the first time I heard of the project. And I don't have anything to sell. But I am

Re: ANN: Maymyo Business Application Infrastructre Beta 0.3.3

2012-09-20 Thread bobhaugen
This is a very ambitious project. I wish you great success. I did some browsing of the doc and code and am very impressed by what you have accomplished so far. Your "glacial speed" comment is too modest. I am working on business applications in Django, but they are not enterprise-oriented.

Re: Graphs for my Django Application

2012-06-08 Thread bobhaugen
> > http://d3js.org/ can handle both meanings of graphs: charts like bar charts, or visualizations of network structures. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Django and social network

2012-02-24 Thread bobhaugen
Another angle on virtualenvs: if you install http://www.doughellmann.com/projects/virtualenvwrapper/ you will find them much much easier to use. You might even begin to like them, as many others have. Takes a little getting used to, though, like anything else that is different. -- You received

Re: Open-source or closed-source for SaaS?

2012-01-16 Thread bobhaugen
You might also want to consider: (1) Will anybody actually want to compete with you using your code or a fork of same? People often assume ravenous competitors when in real life, nobody is that interested, for whatever reasons. Or at least they will not become interested until you are way out in

Re: Is DJango bad for conveying business-logic?

2011-12-14 Thread bobhaugen
I'm developing quite complex business systems in Django, and if you google for "django erp" you'll find a bunch of those. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: Django E-Commerce Framework

2011-12-07 Thread bobhaugen
I'm guessing that the OP wanted to develop a "standard" e-commerce site for a single company, in which case I agree with Stuart and Andre that the way to go is a well-tested e-commerce framework. I had to roll my own because I was doing something very different: B2B e-commerce with an efficient

Re: Still getting IntegrityError in test fixture using dumpdata --natural

2011-10-12 Thread bobhaugen
On Oct 12, 9:12 am, Russell Keith-Magee wrote: > --natural isn't a magic wand Dang! I knew that "magic removal" was a bad idea... > Contenttypes are automatically created by syncdb. If your fixtures > *also* contain content types, you can potentially get

Re: Still getting IntegrityError in test fixture using dumpdata --natural

2011-10-11 Thread bobhaugen
Replying to myself: temporary fix for dumpdata: --exclude contenttypes --exclude auth.permission The result now works as a test fixture. Not sure what to conclude: * the fix for issue #7052 does not work? * --natural does not fix the IntegrityErrors with contenttypes in test fixtures? *

Still getting IntegrityError in test fixture using dumpdata --natural

2011-10-11 Thread bobhaugen
Still getting "IntegrityError: columns app_label, model are not unique" when loading a test fixture created by dumpdata using the keyword --natural. I am probably missing something, but I understood the resolution to https://code.djangoproject.com/ticket/7052 to be to use the new -- natural

south vs nashvegas

2011-07-31 Thread bobhaugen
I'm about to start using a database migration tool on an existing project. (Yes, yes, I know, I am crazy for not having done so from the beginning...) So: south (the reigning champ) or nashvegas (the upstart)? I respect the people working on nashvegas a lot, and figure they have pretty good

Re: Web development newbie

2011-07-24 Thread bobhaugen
On Jul 23, 8:19 am, Riefers wrote: > I've spent the 10+ years developing serverside apps in java. I've > never done any web page developement. Someone recommended Django. Any > suggestions on where to start? I learned Python and Django at the same time. A lot of

Re: ANN: django-iadmin

2011-07-04 Thread bobhaugen
Awesome feature list. I'll start trying it tomorrow. Just sending this message to be encouraging. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this

Re: How to choose a license for an app or a project?

2011-05-13 Thread bobhaugen
Another angle on licenses is software community practice. If you want to develop an app to be widely adopted within a particular software community, you will want to use a license that is the same as or compatible with the community licensing practices. For example, I wanted to develop an app

Re: framework web comparison

2011-04-08 Thread bobhaugen
Another factor that was important to me was the community. Django has a friendly and helpful expert community. When I was picking a framework, I did not get the same impression from Rails. Smelled more like competitive-rockstar. -- You received this message because you are subscribed to the

Re: Pinax: worth installing?

2011-01-19 Thread bobhaugen
I've gone a couple of different ways on Pinax: * I have built sites using Pinax pretty much as is, and Pinax heavily customized. * I have also built sites that did not start with Pinax, but added several apps blessed by Pinax and using Pinax conventions. Both approaches worked well. By the

Re: representing a possible future object in a form?

2010-11-18 Thread bobhaugen
On Nov 18, 12:18 am, Derek wrote: > It would be great if perhaps one of you could write up a more detailed > description (i.e with code) of this as a blog entry... or maybe a wiki page? Derek, before I posted the vague description above, I looked at my code for an example

Re: representing a possible future object in a form?

2010-11-17 Thread bobhaugen
I've done this several times, and Toby's description is pretty much what I have done. Sometimes three levels of non-data-model classes to represent the matrix: a table class a row class a cell class Then formsets to populate the rows with data entry fields. Then builder methods to morph the

Re: Where do you put your business logic in django? Organizing big projects in django.

2010-09-28 Thread bobhaugen
Seems to be a general ferment on the topics of reusable Django apps and best practices for modularizing large projects. For example, http://groups.google.com/group/django-users/browse_thread/thread/22875fd287d0aa81 I expect the situation to improve, or at least change, a lot over the next year.

Re: Wiki in Django?

2010-09-13 Thread bobhaugen
http://github.com/bartTC/django-wakawaka http://github.com/pinax/django-wakawaka Does not run on flat files, but it is being actively developed and used in Pinax. You might need to check the diffs to figure out which of the above versions to use. -- You received this message because you are

Re: how to add a non-field text property to forms in a formset

2010-09-02 Thread bobhaugen
I am so dense sometimes... I had forgotten that initial data in a formset is a *list* of dictionaries. So I set up the initial data in a loop over the available products, and created a parallel list of product_descriptions in the same loop. Then set up the formset, and looped over formset.forms

Re: how to add a non-field text property to forms in a formset

2010-09-02 Thread bobhaugen
Bill, thanks a ton for the conversation. I will try some variations of that set of ideas over the weekend and report back here with what works. And you are correct, I am not now creating the formset forms in a loop, but might try that as one variation. -Bob -- You received this message

Re: how to add a non-field text property to forms in a formset

2010-09-02 Thread bobhaugen
On Sep 2, 2:54 pm, Bill Freeman wrote: > Let's start by agreeing on common terminology.  "property" has >  a meaning in Python slightly different than its usage in some > other languages, and I don't think that's what you mean. > > I'm thinking that what you mean by "property"

Re: how to add a non-field text property to forms in a formset

2010-09-02 Thread bobhaugen
Bill, Thanks a lot for sticking with this question. On Sep 2, 1:44 pm, Bill Freeman wrote: > I guess that what I'm saying is that when you get fussy about rendering, you > need to write the html/css yourself.  Because you say you want read only for > these fields, don't use

Re: how to add a non-field text property to forms in a formset

2010-09-01 Thread bobhaugen
On Sep 1, 12:17 pm, Bill Freeman wrote: > This seems to me to be a job for the template.  The forms documentation has > a section on custom rendering which shows you how to iterate through the > fields, or access them by name.  You would insert whatever HTML construct > was

how to add a non-field text property to forms in a formset

2010-09-01 Thread bobhaugen
I often want to add properties to a formset that will fill a table cell with flexibly wrapping, read-only descriptive text. For example, the description of a product, where the enterable field is the quantity ordered. If I use a field, the widget gets a fixed width and the contents do not wrap

Re: custom vocabularies vs translation

2010-08-10 Thread bobhaugen
On Aug 9, 5:01 pm, cootetom wrote: > Using the language files is the solution here. Even if your site only > supports the English language, it still means that you can have .po > files for just English. Once you understand how it all hangs together > you'll be away. Thanks

custom vocabularies vs translation

2010-08-09 Thread bobhaugen
I want to provide customizable vocabularies for an open-source django project, where each deployer can use different terms for strings that appear in templates (e.g. field names, form field descriptions, help text, page titles, etc.) Would django language files work for this purpose? Everything

Re: Logic

2010-07-16 Thread bobhaugen
On Jul 16, 7:56 am, Ravango wrote: > I mean by web server, running a web site, which anyone could use to > perform a specific task. In my case, I would be running a program that > people might be interested to use. Towards building a web server, > currently, using Django, I'm

  1   2   >