er 0.02 or 0.02, I Geta validation error
- Ensure this value is greater than or equal to 0.02.
My guess is that this has to do with floating point equality issues. Has
anyone experienced this behavior before, and how do I fix it?
Marshall
--
You received this message because you are subscri
OK, I've gotten time to touch the code again, applied your suggestion, but
there is no apparent change in behavior. For the sake of argument, I'm
including the stack trace again. I'm not sure where my good debugging
entry point is here.
--
You received this message because you are subscribed
..
>
> On Sunday, 31 March 2019 04:31:42 UTC+2, Josh Marshall wrote:
>>
>> I'm helping out on a project, but am running into a paradox of a bug must
>> existing in the code, but no project code is called. Not sure how to deal
>> with this one. It looks
Identical behavior.
On Sunday, March 31, 2019 at 12:42:17 AM UTC-4, jlgimeno71 wrote:
>
>
> On Sat, Mar 30, 2019 at 7:31 PM Josh Marshall > wrote:
>
>> I'm helping out on a project, but am running into a paradox of a bug must
>> existing in the code, but no proje
I'm helping out on a project, but am running into a paradox of a bug must
existing in the code, but no project code is called. Not sure how to deal
with this one. It looks related to URL setup and the urls.py file is
practically identical to the examples. Can anyone make sense of this stack
I'll note that "CREATE_DB" is slightly misleading, and would be more
accurately called "CREATE_SEPARATE_TEST_DB_IN_ORACLE".
The error I'm getting is somewhat misleading also as there's nothing wrong
with the ALWAYS keyword, the problem is that the test script is trying to
create a table in a da
Hi all,
I think I've found a bug here - or certainly I have some behaviour that I
don't expect and don't want.
My django (2.1.7) project is providing a query/read interface to some
existing legacy databases. These are Oracle based (and that brings its own
challenges, as they're not current Ora
Did you run any migrations
"The world is just for a moment so make it a moment of obedience"
On Tue, Sep 25, 2018 at 1:05 PM Melissa Malala
wrote:
> My project is giving me an error called "No Module named "newsimage" app
> (2 Screenshots attached) whenever I run the server using:
> python3.6
Think I found the problem.
You're not registering the new Admin model classes you have made.
change: admin.site.register(Resguard)
to this:
admin.site.register(Resguard,ResguardAdmin)
do the same with the rest of your admin.site.register() functions
That should work! Hope that help
propriately by the "client". The fact
> that the client is a browser or an Android phone doesn't matter.
>
> Yours,
> Russ Magee %-)
>
>
> On Tue, Aug 5, 2014 at 8:18 AM, Adrian Marshall > wrote:
>
>> I have a Django app up and running and It's more m
I've went through a few different ways. If your set on using apache,
Configure Apache with Mod-WSGI on a server.
Here's a Good Tutorial:
http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/
If you're having trouble with that and your app isn't too demanding you can
e
I have a Django app up and running and It's more mobile based than a web
app. I'm new to development with both Django and Android. I've setup an API
using Django-Tasty pie and I can get JSON data from my models,including the
user model that comes with Django. I've implemented logging in function
I've got a model that serves as a front-end to spawn celery tasks
called LaryerImportTask. I want the admin user to be able to create
LayerImportTask objects in the admin, but I don't want them to be able
to change it in the admin after it's been created. Any ideas on how I
could do this?
--
You
everything to both machines.
I¹m running postgresql and having issues trying to get my router right and
didn¹t know if anyone else has done this before.
Thanks,
Marshall
--
Marshall Roach
mro...@arinc.com
-
This e-mail (including any attachments) is intended only for the
2009/4/8 brian :
>
> I think I'm having the same issue. Did you ever find a solution?
>
Yea, Karen Tracey was right in my case:
> On Feb 14, 5:06 pm, Karen Tracey wrote:
>> On Sat, Feb 14, 2009 at 11:07 AM, Alistair Marshall <
>> this is covered here:
>&g
On Feb 15, 12:06 am, Karen Tracey wrote:
> The previous paragraph means that if you are overriding Form.clean(), you
> should iterate through self.cleaned_data.items(), possibly considering the
> _errors dictionary attribute on the form as well. In this way, you will
> already know which fields h
I have been trying to create a custom field that allows the user to
enter a flowrate and clean the data back to kg/s or mol/s.
I though I had everything sorted, when I type '10 tones/year', it
correctly did the conversion however when I type something that does
not validate such as 'twenty' or '5
On Jan 21, 7:54 pm, joshuajonah wrote:
> A normal manage.py dump to fixture doesn't work?
>
I had missed that one, didn't know it was an option.
my bad
Thanks
Alistair
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
Hi folks,
I have been developing a project on my desktop using sqlite, I have
just attempted to move it onto a 'proper' server and was hoping to use
mysql.
The thing is I have some data in the database from some beta users and
was hoping to take the data over with the move.
I had planned on usi
hi folks,
I am currently trying to create an app which allows the user to
generate flowsheets (of a chemical plant)
So far I have created all the basics and allow the user to enter
information about the individual unitsw chemicals etc and the user can
even run a simulation.
what I now want to d
d to neaten the form. Silly really.
Thanks for that
Alistair
--
Alistair Marshall
www.thatscottishengineer.co.uk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
feed unit the system works fine. However if you go
and edit an existing feed unit, an error gets thrown when saving the
form.
I think that's covered most things - any suggestions/comments welcome
Thanks
Alistair
[1] http://www.thatscottishengineer.co.uk/code/impress.zip
--
Alistai
2009/1/5 Alistair Marshall :
Upgraded to 1.0.2
I'll try and create a cut down version-that may take some time (it is
getting to be a large project)
Thanks
--
Alistair Marshall
www.thatscottishengineer.co.uk
--~--~-~--~~~---~--~~
You received this me
t, but updating an old one
gives the error mentioned in my first email.
What other information is needed?
thanks
--
Alistair Marshall
www.thatscottishengineer.co.uk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I appear to be having the same trouble as explained in a previous
thread [1] (and for some reason cant find the button to reply to the
last thread ???)
The other thread points to a bug that was fixed before django 1.0
(which is what I am running)
I am not (intentionally) doing anything funny wit
I have been hunting around but can't find a solution to this problem:
It is probably best described with an example
Example:
class Author(models.Model):
name= models.CharField()
location = models.CharField()
class Book(models.Model):
name= models.CharField()
cts.get(id=self.id)
except:
return self
class SubItem(Item):
#-
Thanks
Alistair
--
Alistair Marshall
www.thatscottishengineer.co.uk
--~--~-~--~~~---~--~~
You received this message because yo
On Nov 6, 2:22 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> If all worker classes (cook, waiter, ...) are subclassed from Worker,
> something like this should work: Worker.objects.filter(workplace=...)
>
Unfortunately the function that each child will run is a bit more
complicated than just l
Using the example in the django writing models documentation [1] I
wish to get a list of all the places, then calculate a value that
depends on what the type of place it is.
Say in my restraunt I have a function get_workforce() which returns a
list of all the people that work in the restaraunt. T
Marshall
http://www.thatscottishengineer.co.uk
--~--~-~--~~~---~--~~
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 g
Ok, perhaps this is a pinax issue?
I would not have thought that it would have made a difference but I'll
try asking on the pinax list.
Thanks for your help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django us
On Oct 28, 1:43 pm, patrickk <[EMAIL PROTECTED]> wrote:
> you could try changing the import in __init__.py to someting like
> this:
> from app_name.models.model_file import Model1, Model2, ...
> e.g.
> from library.models.material import Material, MaterialImage
>
> ... might work.
>
Thanks for you
I have been trying to split my models.py file into several smaller
more manageable files. I have created a folder named models, an in
there, created a __init__.py file which contains:
from other import *
from streams import *
from units import *
I have then split my models into the three files m
I'd be glad to maintain it for kate!
I just uploaded a new version. It highlights mismatched
block/for/if/etc tags as errors. (Something I tend to do a lot.)
I also changed the priority to 9, so that it doesn't compete for the
html extention.
(Sorry it took me so long to reply... I've been pr
I got sick of kate highlighting my django template vars/tags as errors,
so I put this together. It highlights tags, vars, filters, and
comments. You can also use Ctrl+[Shift+]D to [un]comment using {%
comment %}{% endcomment %}.
It's really pretty simple, but I thought it was worth sharing.
Ge
> I'd advise you to drop the symlink and use the PYTHONPATH variable,
> but that's just my hunch based on no empirical data.
Okay, I just deleted /usr/lib/python2.4/site-packages/django (which
was the symlink), and added to the PYTHONPATH environment variable the
actual django directory, and if f
> This is very strangely worded. You installed Ubuntu completely on top
> of Debian and then installed Django from SVN again? You're not being
> explicit enough.
Sorry for being unclear. I had debian sarge installed, and I installed
django from svn at that point. Then I wiped my machine entirely,
> I downloaded the svn version of django a couple of weeks ago, and had
> it working fine within Debian. I installed Ubuntu 6.06 today, and my
> django install has stopped working.
>
> I can run python interactively and type "import django" and get no
> errors, but when I go into our project direc
> It sounds like you might have two versions of Python installed. You
> should confirm that the shebang line in ./manage.py is for the right
> version. Alternatively, running 'python manage.py syncdb' should work.
The shebang says "#!/usr/bin/env python", which returns 2.4.3 when
asked. (So does
Hi,
I downloaded the svn version of django a couple of weeks ago, and had
it working fine within Debian. I installed Ubuntu 6.06 today, and my
django install has stopped working.
I can run python interactively and type "import django" and get no
errors, but when I go into our project directory a
On Saturday 24 September 2005 12:25 am, [EMAIL PROTECTED] wrote:
> A warning for other Konqueror users:
>
> In the just-released KDE 3.5 beta (KDE 3.4.91), the Django admin
> screens that have datetime fields and calendars cause KHTML to freeze.
> This didn't happen in 3.4.0, and I'm hoping it wil
On Saturday 17 September 2005 01:00 am, Eric Walstad wrote:
> Hi,
>
> I didn't find any reference to money or currency data types in the
> django source, nor in the list archives. My app needs to store US
> Dollars.
>
> What are you all using to store currency data?
>
> Any tips on how best to wr
On Wednesday 14 September 2005 08:25 am, lawgon wrote:
> File
> "/usr/local/lib/python2.4/site-packages/django/core/meta/fields.py",
> line 320, in get_db_prep_save
> value = value.strftime('%Y-%m-%d')
>
> AttributeError: 'str' object has no attribute 'strftime'
>
> i realise that this has so
Whoa! That's quite a hefty piece of documentation.
Thanks!
MWM
On Tuesday 06 September 2005 03:16 am, Adrian Holovaty wrote:
> I just added this new document:
>
> The Django template language: For Python programmers
> http://www.djangoproject.com/documentation/templates_python/
>
> Comments,
On Thursday 01 September 2005 06:13 am, Leo wrote:
> class People(Model):
> first_name = ManyToManyField (Name)
> last_name = ManyToManyField (Name)
I might be misunderstanding the situation, but why are you using
ManyToManyField instead of ForeignKey?
(Sorry I don't know the answer to
On Thursday 01 September 2005 02:11 am, Adrian Holovaty wrote:
> I added that to the model docs a couple of days ago:
> http://www.djangoproject.com/documentation/model_api/#models-across-files
>
> If it's not sufficient, I can definitely improve it. How does it look?
Oh, I hadn't seen that. (I
On Thursday 01 September 2005 12:50 am, Adrian Holovaty wrote:
> Hmmm...Could you make a test case for this? We use many-to-many
> relationships to core.Site all the time and don't have problems.
How disgusting! While working on a test case, (and tweaking the test
framework to accomodate a seco
Is anyone using M2M fields that cross apps? I am trying to do so, but am
getting strange results.
I have two models: categories.Category and items.Item. Item has a M2M link to
Category.
Everything seems to work fine, except that the 'get_related_list' methods seem
to be messed up. From loo
On Wednesday 17 August 2005 12:49 pm, Andy Shaw wrote:
> Is there any easy way to have two or more applications run
> simultaneously? Having created one fully-working application, which
> provides content for part of my site, I now want to construct another
> which will provide site-global menus a
On Friday 12 August 2005 08:14 pm, Jacob Kaplan-Moss wrote:
> I just today ran across sqlrelay (http://sqlrelay.sourceforge.net/)
> which looks *extremely* promising for this type of use. Does anyone
> have any experience with it, and is there any interest in me writing
> a sqlrelay backend?
>
>
50 matches
Mail list logo