I am about a week into learning Django, having developed with PHP and
the CodeIgniter framework for the past 3 years. That said, I'm used
to making a change to a file, refreshing my browser and seeing the
results.
Django's "syncdb" aside, it's been pretty weird having to restart the
Django webser
Thanks for the quick response, guys. I guess what confuses me is the
need to EVER restart the server to pick up changes (excluding db
syncs). It's been stated in many places (including Tim's response)
that the test server will automatically pickup code changes, but on
several occasions I've made
self.field.name,
self.field.rel.to._meta.object_name))
If I switch back to using:
contact = models.ForeignKey(User, ...
then editing works OK, but the list now just displays the (ugly) username.
Any help or suggestions appreciated.
Thanks,
Derek
--
You received this
On Sep 28, 12:08 pm, dPeS wrote:
> Hi all,
>
> Anyone has explanation to this? :
>
> >>> len(models.Rezerwacja.objects.all())
> 9
> >>> len(models.Rezerwacja.objects.annotate(przyjazd=Min('transza__zajetosc__dzien')))
> 9
> >>> models.Rezerwacja.objects.annotate(przyjazd=Min('transza__zajetosc__dz
On Sep 28, 12:16 pm, graeme wrote:
> I need to do one of the following in the admin using Django 1.2:
>
> 1. Validate a value in a form against which objects have been added
> using an inline form.
> 2. Add or delete related objects depending on the value in the main
> model from.
>
> The first wo
I have a model which has choices specified for the "offer_type" field:
class Coupon(models.Model):
offer_types = (
(1, 'Percentage Off'),
(2, 'Amount Off'),
(3, 'Free'),
)
business = models.ForeignKey(Business)
offer_
Thanks, Steve. Sounds like a plan.
On Sep 28, 10:48 pm, Steve Holden wrote:
> On 9/28/2010 10:39 PM, Derek wrote:
>
> > I have a model which has choices specified for the "offer_type" field:
>
> > class Coupon(models.Model):
> > offer_types =
(nor there is there
a for it), there is an extra blank column in the data rows (i.e a
extra blank ). This looks a little odd as the rows/headers do not
match up.
How can I alter the template so it does not show up... and, is this behavior
expected, or is it a quirk in the design?
Thanks
Derek
-
Have a look at this discussion - it has some useful pointers:
http://stackoverflow.com/questions/886221/does-django-scale
as does this blog entry on Django/Postgresql:
http://www.davidcramer.net/code/django/6939/scaling-threaded-comments-on-django-at-disqus.html
which relates to:
http://www.slidesh
As per the fine manual:
http://docs.djangoproject.com/en/dev/ref/django-admin/#syncdb
"Syncdb will not alter existing tables
syncdb will only create tables for models which have not yet been
installed. It will never issue ALTER TABLE statements to match changes
made to a model class after install
Remember that Django is "just" Python under the hood and that Python,
like any other self-respecting language, will always treat different
types as being, well, different!
On Sep 29, 10:14 pm, aa56280 wrote:
> Thanks for that. I figured it was something along those lines. I
> didn't think Django
On Oct 7, 10:16 pm, indymike wrote:
> Here's my issue - I'm going to run out of integers for my primary key
> in one of my tables. I'm using MySQL, which has been absolutely
> fantastic, and will for at least a few more decades if I can make a
> change from INT to BIGINT.
>
> What's the right way
has been reset
back to the pre-filtered set.
I'd appreciate any ideas or insights as to how to get both of these
"technologies" working smoothly together.
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
Alessandro
Sounds like you need a custom FilterSpec; see for example:
http://my.opera.com/curaloucura/blog/2009/02/17/custom-filter-on-django-admin
On Oct 21, 11:06 am, Alessandro Ronchi
wrote:
> Is it possible to change the list_filter in admin to show only items that
> have related values?
>
>
A quick question for anyone using the django-autocomplete ... where/how do I
style the display box used for displaying the "static" text?
Thanks!
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
ot dynamic)
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more
r .css file. I found that a styling of width:85% gave a suitably
large display for showing a long text entry...
Derek
On Oct 21, 4:06 pm, Derek wrote:
> A quick question for anyone using the django-autocomplete ... where/how do I
> style the display box used for displaying the "stat
Have a look at this thread:
http://groups.google.com/group/django-users/browse_thread/thread/deda522d2545325e/bbaa8edbeda204e3?lnk=gst&q=production+number#bbaa8edbeda204e3
The author has a similar problem i.e. he says:
"There is a high risk of concurrency so just finding the previous max
and the
You'll need to use AJAX - I suggest you look at:
http://www.texotela.co.uk/code/jquery/select/
There are also other ways of pre-filtering a model's choices... have a
look at:
http://www.stereoplex.com/blog/filtering-dropdown-lists-in-the-django-admin
and
http://www.artfulcode.net/articles/runtime-
Actually, it seems more complex... you now have a 2 stage operation
to carry out what should be a relatively(?) simple operation - add a
user with their details.
I have *exactly* the same problem as the original user - is there no
one else who has managed to create a usuable User+Profile admin ed
Update: seemingly the "two stage" is the way to do it. I have not
managed to get any alternative methods to work (and there are more
pressing problems :)
On Oct 27, 9:07?am, derek wrote:
> Actually, it seems more complex... ?you now have a 2 stage operation
> to carry out
Its not clear if you want to filter the choices before the form is
displayed, or dynamically in the browser?
On Oct 26, 7:29 pm, Lllama wrote:
> Hello all,
>
> I've got an admin site that includes some inlines. These in turn
> contain a ChoiceField. I'd like to filter the choices based on an
> at
I always had the opposite impression. The Admin can be modified quite
extensively to handle most cases for regular, on-going, data entry for
multiple models. This means you have consistency and built-in
cohesiveness (less chance for errors because you are using existing
code). Its for specialised
And my thoughts are echoed in this parallel thread I just came across:
http://groups.google.com/group/django-users/browse_thread/thread/935d64cb03730b73
On Nov 2, 9:12 pm, derek wrote:
> I always had the opposite impression. The Admin can be modified quite
> extensively to handle most cas
ind of applications/situations do you find more suited for
> reusing the admin module?
>
> Regards,
> Carlos Ruvalcaba
>
> On Tue, Nov 2, 2010 at 12:12 PM, derek wrote:
> > I always had the opposite impression. The Admin can be modified quite
> > extensively to handl
Fred
This seems not related to the original topic; please start a new
thread.
On Nov 3, 2:56 pm, "Sells, Fred" wrote:
> I'm running on Windows 7, Python 2.4 and Django 1.2.1
>
> I'm trying to change one table "facility" by dropping it and then
> letting syncdb recreate it. I thought syncdb was
Maybe slightly "off topic" but does anyone have robust strategies for
readily switching between different DB-specific SQL code which is
(presumably) embedded in one's app/project? (As shown in the two
examples presented here)
On Nov 5, 1:10 am, David Zhou wrote:
> FWIW, on Postgres DBs, I've don
I'll add my 2c here...
I don't think you need to create an app for this (not yet). Just
create a normal Django project and go from there. Apps are more meant
for very generic types of functionality that can be used in many, many
situations e.g. tagging.
Your design is still very broad and so ha
Its not clear exactly what you think the problem is. The system is
behaving correctly ito the way you have set it up.
1. You have specified that name and address are compulsory fields in
Place.
2. You have specifed that Restaurant must be linked to Place (i.e.
Place must be created before Restaur
into a Restaurant.
>
> On Nov 5, 9:42 am, derek wrote:
> > Its not clear exactly what you think the problem is. The system is
> > behaving correctly ito the way you have set it up.
> >
> > 1. You have specified that name and address are compulsory fields in
> >
original example" are you referring to?
>
>
>
> On Nov 5, 10:25 am, Derek wrote:
> > You mean "trying to add a Restaurant which is linked to an existing
> place"
> >
> > I am not familar with the syntax you are using for the **{} wrapper.
> >
&
cs/db/models/#multi-table-inheritance
>
>
> On Nov 6, 5:59 am, Derek wrote:
> > The example shown in the online documentation.
> >
> > On 5 November 2010 18:24, ringemup wrote:
> >
> > > **{} is sort of the inverse of **kwargs in a function signature --
I have not really understood when and why they are needed; I would be
interested to see an alternative also because it might improve my
understanding.
On Nov 9, 3:27 pm, ringemup wrote:
> I don't use them either for much the same reasons, and because I often
> end up using custom render_to_respon
"the PhoneBook fields appear three times"
Three is the default, but you can set the number of linked (inline)
forms for the children:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin.extra
On Nov 8, 11:55 pm, sosurim kim wrote:
> Oops, I meant to say a
" you'll have to have all the states/provinces as 'choices' in the
ChoiceField in the form, otherwise the form won't validate."
Yup, this is a "real" gotcha. IMO, its not really true filtering if
you take this approach, as the initial form will still load the X
million items, even though the user
Any examples showing this approach readily available?
On 16 November 2010 20:16, Simone Dalla wrote:
>
>
> 2010/11/16 Derek
>
> Sean
>>
>> I hear what you say - but is this approach also readily available inside
>> the Admin framework?
>
>
> Absolutely
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?
On 17 November 2010 18:10, bobhaugen wrote:
> I've done this several times, and Toby's description is pretty much
> what I have done.
>
> Sometimes
Sean
I hear what you say - but is this approach also readily available inside the
Admin framework?
Derek
On 16 November 2010 16:20, Shawn Milochik wrote:
> On Tue, Nov 16, 2010 at 9:08 AM, derek wrote:
> > " you'll have to have all the states/provinces as 'choices
You will need to use Javascipt: handwritten or via framework e.g.
JQuery. Its been asked about before on this mailing list and numerous
people have blogged on it.
On Nov 16, 11:58 am, Federico Capoano
wrote:
> Any suggestion?
>
> On Nov 14, 6:15 pm, Federico Capoano wrote:
>
> > Hi all,
>
> > I
translating "filled-in holes" to clean
database records.
I would think there must be a neat JQuery interface one could
construct for the view?
Derek
On Nov 16, 1:01 am, Preston Holmes wrote:
> This is a cart/horse pattern I run now and then, and while I can think
> of sev
apps have various
quirks and shortcomings - great in some areas and poor in others. An
official, full-featured solution would be ideal.
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
Please post a link to the PDF when the final release is available.
On Nov 21, 7:38 pm, "ckar...@googlemail.com"
wrote:
> Sry for dublepost.
>
> For those who don't want to install all the *tex* libraries. Here is
> the link:http://ubuntuone.com/p/QFl/
>
> Have fun with printing and reading ;-)
>
Hmm. So you're not planning to upgrade the doc when the final release
is made...?!
On Nov 25, 4:22 pm, "ckar...@googlemail.com"
wrote:
> Okay, please remind me ;-)
>
> On 25 Nov., 09:38, derek wrote:
>
>
>
>
>
>
>
> > Please post a link to th
Have you looked at:
http://docs.djangoproject.com/en/dev/topics/auth/#module-django.contrib.auth.forms
Failing that, http://docs.djangoproject.com/en/dev/ref/generic-views/
may help get you going quickly.
On Nov 25, 8:08 pm, BozoJoe wrote:
> So no builtin views and urls in any modules?
--
You
The button on the first page of http://www.django-projector.org/ says
"Sing up for the demo project". Makes a refreshing change from the
usual getting started red-tape ;)
On Dec 7, 6:59 am, zodman wrote:
> django-projector
>
>
>
> On Wed, Nov 10, 2010 at 2:05 PM, Toby Champion
> wrote:
> > I d
You can also look at the blog entry that James Bennett (on the Django
dev team) wrote on this topic
http://www.b-list.org/weblog/2008/dec/24/admin/
He says "For a free bonus Christmas present, I’ll also explain another
frequently-requested item: how to ensure that people can only see/edit
things
read when I saw your post here.
Derek
On Jan 23, 12:50 am, Carl Zmola wrote:
> I have a similar problem I want to exclude or include records based on
> the presence of other records.
>
> I want to march through Users, get their profile, and exclude records who
>
> I have 3 tab
n.))
and rather provide visible links (buttons/images) to graphic examples.
HTH
Derek
On Jan 28, 4:27 am, Nick Lo wrote:
> Hi Marinho,
>
> > I have good news :)
>
> > I've done today the new website of Geraldo Reports [1].
>
> I hate to be one to say this as it l
ady linked to Regions.
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@google
I'd like the option (maybe linked to profile on the webpage?) to set:
* timezone
* database engine
On Feb 9, 10:58 pm, Brice Leroy wrote:
> Hello everybody,
>
> I've been working for a week on this idea of a generator for django
> project. The goal is to provide a simple architecture that can be
orm() method.)
Any help with this is appreciated.
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-
nks.
On Feb 11, 12:25 pm, Dennis Kaarsemaker
wrote:
> On di, 2010-02-09 at 08:52 +0200, Derek wrote:
>
> > Can the filter list for the Region (as shown above in the RegionAdmin
> > class) be altered in some way such that it only shows those countries
> > that have region
I'd also recommend working through "The Django Book"
http://www.djangobook.com/en/2.0/
This section entitled "Using Sessions in Views", from this URL:
http://www.djangobook.com/en/2.0/chapter14/
seems relevant to what you are trying to do.
On Feb 10, 7:00 am, Keyan wrote:
> I am new to django!!
class EventInline(admin.TabularInline):
model = Event
extra = 1
will only show one extra event (the next "empty" one, if you like).
On Jan 11, 4:11 pm, Igor wrote:
> Thanks, you're right... was posting this late at night while
> experimenting and copied the experimental version... The
ight" to delete, but that still does not mean that
they should be able to delete those that fall into this case.)
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@google
(not a movie trivia problem!)
The question I need to resolve here is "does Passenger 57 qualify for a
discount"?
Given the following models:
class Alliance(models.Model):
name = models.CharField(max_length=100)
#e.g. Star, Western, Pacific, European
discount = models.FloatField()
cl
Is there a way to alter the display of fields in the Django Admin change
lists so that they do not show (None) - for text - or None - for numeric.
I'd prefer to use " " or "-" for display of items instead.
Thanks
Derek
--
You received this message because you are
lt, and am back to the Python prompt
(>>>).
No queries, as shown here:
http://docs.djangoproject.com/en/dev/faq/models/#how-can-i-see-the-raw-sql-queries-django-is-running
are ever displayed, as I browse Admin, edit records etc.
What else do I need to do?
Thanks
Derek
--
You received t
to do this kind of
querying with the Django ORM rather than help with model or database
construction.
Thanks again - I will try and clarify more quickly in future.
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
tting
can be selected.
in this section of the docs:
http://docs.djangoproject.com/en/1.1/topics/i18n/deployment/#if-you-do-need-internationalization
It would helpful to have a link to a page that describes how the entire
interface (*not just your project or application*) can be translated.
Thanks
De
Unfortunately not; this only deals with an application, not Django
itself, and not the Admin interface.
On Feb 22, 4:28 pm, Daniel Roseman wrote:
> On Feb 22, 2:16 pm, Derek wrote:
>
> > I'm sure I am using the wrong search terms, but I am trying to find out how
> > add
Thanks Daniel - I missed that part {sound of head slap}.
Assuming I manage to do a translation, would there be any interest
from the dev team to include this new language version?
On Feb 23, 6:34 pm, Daniel Roseman wrote:
> On Feb 23, 2:31 pm, derek wrote:
>
> > Unfortunately no
Before you give up hope ;) you should read this:
http://djangoadvent.com/1.2/jquery-admin/
In the meanwhile, yes, there are a ton of good blog entries out there
on how to extend the admin with javascript (usually jQuery). When I
am feeling more organised, I will try and post some links here...
O
rm
developed by journalists...
On 1 March 2010 18:37, snfctech wrote:
> Thanks for the link, Derek. It's good to know that Django is
> integrating more JS into the admin - although I'm using 1.1.1, not
> 1.2. Hopefully customizing the admin with JQuery will make its way
> into the co
options are
possible?
c. Is there a reason why the continuity of the interface is not maintained
as "default", and would it make sense to add this suggestion as a new
ticket? (Probably getting too far ahead here...)
Thanks
Derek
--
You received this message because you are subscri
On Mar 8, 8:58 am, Russell Keith-Magee wrote:
> On Mon, Mar 8, 2010 at 2:24 PM, Derek wrote:
> > I have noticed that, if a change list has been filtered before a record is
> > edited, the filter is not restored after the editing operation is complete.
>
> > a. Is ther
'name',)
> verbose_name = 'Provincie/Land'
> verbose_name_plural = 'Provincies/Landen'
>
> For the record, I am using django trunk revision 12295 .
>
> - Wim
The Django documentation:
http://docs.djangoproject.com/en/dev/ref/models/options/#orde
of "human readable" id string when browsing the raw data), but I would
welcome other opinions (or options).
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@google
On Mar 8, 6:00 pm, Daniel Roseman wrote:
> On Mar 8, 3:01 pm, Derek wrote:
>
> > I am working with a legacy database and would appreciate some advice.
>
> > I have an existing "user" table, with some fields that overlap with the
> > design of Django
On Mar 16, 8:35 pm, Nick wrote:
> I am working on a project that has a portion of the admin with three
> different "choices" options. The section of the model that this
> thread is concerned with looks like this:
>
> Department_Choices = (
> ('Advertising', 'Advertisinf'),
> ('NIC', 'NIC'),
> ('P
s" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/dja
I do that?
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more
On Mar 24, 5:30 pm, adam wrote:
> derek
>
> i want to do the same thing.
>
> first, the site below mentioned about
> filtering.http://patrickbeeson.com/blog/2008/aug/11/how-create-user-specific-ad...
>
> in this time, you have to give country_id as a request paramete
On Mar 24, 11:21 pm, Thierry Chich wrote:
> Le mercredi 24 mars 2010 16:53:12, Sandman a écrit :
>
> > Hi Derek,
>
> > One way to do this would be to create a proxy model that can be used
> > throughout your project.
>
> > Check out
> >http://docs.django
On Mar 26, 1:54 pm, Chris McComas wrote:
> I have to models, one is just a timestamp field and a file, the other
> has some information. I need to create a view that'll allow our staff
> to upload a CSV and then it'll automatically take that info and save
> it into the second model. I found
> thi
to get an idea of the type of things that can be done:
http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/
http://www.ibm.com/developerworks/opensource/library/os-django-admin/index.html
http://www.lonelycode.com/2009/05/28/customising-the-django-admin/
Derek
--
You re
On Mar 26, 5:58 pm, Bill Freeman wrote:
> Actually, by the time your user can click a button the "result-set" is no
> longer around, because thecontextis no longer around (render and the
> view function have returned). All that's left is the rendered representation.
>
> I see two possibilities:
>
On Mar 29, 3:48 pm, Javier Guerra Giraldez wrote:
> On Mon, Mar 29, 2010 at 3:07 AM, derek wrote:
> > Is there a possibility to store longer term data in the session
> > variable (assuming one is dealing with logged-in users)?
>
> you should write that data to the user
eds to be added/
changed, along with the list of id's of selected items from Step 1.
Some pseudo or example code outlining such a process would be very
useful (and could be added to the wiki).
Derek
--
You received this message because you are subscribed to the Google Groups
"D
I am running Django 1.1 and using the Admin framework with the "built-in"
user registration functionality.
I need to run some code immediately after a user has logged in. How would I
do this?
Thanks
Derek
--
You received this message because you are subscribed to the Google Group
On Apr 2, 1:58 pm, "ge...@aquarianhouse.com"
wrote:
> In this case you should overwrite the auth class.
>
> http://docs.djangoproject.com/en/dev/topics/auth/
>
> On Apr 2, 1:40 pm, Derek wrote:
>
> > I am running Django 1.1 and using the Admin framework with th
"
However none of the tables from my application show up in the "available
permissions" list, so there is obviously a setting I have not, well, set.
I'd appreciate it if someone could tell me what that is.
Thanks
Derek
--
You received this message because you are subscribed
On Apr 3, 4:16 am, Benjamin Welton
wrote:
> Hey All,
>
> Im wondering if anyone has some good links to geodjango tutorials
> (outside of the main one featured on geodjango.org)? Specifically any
> related to Google Map integration (since that subsection appears to be
> missing in the current d
On Apr 3, 7:54 pm, derek wrote:
> On Apr 3, 4:16 am, Benjamin Welton
> wrote:
>
> > Hey All,
>
> > Im wondering if anyone has some good links to geodjango tutorials
> > (outside of the main one featured on geodjango.org)? Specifically any
> > related t
can do to help debug this problem?
thanks,
derek
On May 10, 8:58 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2007-05-10 at 23:46 +0200, Baurzhan Ismagulov wrote:
> > Hello,
>
> > I've upgraded r3709 to 0.96 and started getting the following error:
fixed it. i was using the custom image uploader available here:
http://code.djangoproject.com/wiki/CustomUploadAndFilters
i simply added "save=True" to the def and the super call, and it works
fine. (updated the code on the wiki too)
thanks,
derek
On May 19, 1:26 pm, Malcolm
Here's a similar question on StackOverflow:
https://stackoverflow.com/questions/65141036/deploy-react-and-django-with-nginx-and-docker
On Friday, 8 October 2021 at 16:17:27 UTC+2 patz...@gmail.com wrote:
> I want to ask a quick question guys that, is it possible to host 2 apps in
> one cloud s
I am not sure about the others, but certainly for map clicks you'll need
JavaScript e.g.
https://docs.mapbox.com/mapbox-gl-js/example/popup-on-click/
Of course, the page itself, with JS code links, snippets and supporting
data can be generated via Django in the normal way.
HTH
On Wednesday, 2
Agreed. You could also consider keeping Dojo and upgrading to the current
version.
On Thursday, 25 November 2021 at 19:41:52 UTC+2 sutharl...@gmail.com wrote:
> I would have chosen the first option, since we can have some relationships
> in the database and once all the apis are ready. We can e
This seems to be referring to a Microsoft app
(https://www.thereportviewer.com/) that has nothing to do with Django.
You can, of course, use Django to build a web page that looks similar to
this, assuming you have access to the underlying database.
On Tuesday, 14 December 2021 at 16:01:39 UTC+2
The best approach is for the Django/DB devs to create these fields (and
forms) in advance for the users to enter data.
If you want users to add "key/pair" type data which is not known in
advance, look to adding a JSON column to your table; see:
https://www.postgresql.org/docs/14/datatype-json.ht
We implemented bar coding on the back end - e.g., to generate a PDF which
the client then prints.
One library you can use for this is:
https://pypi.org/project/treepoem/
On Wednesday, 2 February 2022 at 02:05:56 UTC+2
andres@uaiinpebi-cric.edu.co wrote:
> Does anyone have experience with
Hi Michael
I think you may be be comparing apples and oranges and this could be
because it seems you're more of a software user than a software builder.
Django is used to build web-based applications, primarily those with a
database backend. One such type of application is a CMS (other types c
ners-guide-to-concurrency-and-parallelism-in-python
On Thursday, 10 February 2022 at 18:35:47 UTC+2 michae...@gmail.com wrote:
> On Wednesday, February 9, 2022 at 8:39:01 AM UTC-5 Derek wrote:
>
>> Hi Michael
>>
>> I think you may be be comparing apples and oranges and
rocess, but it
comes down to file permissions in Docker not being independent of those in
the host; and there is a LOT of reading around that if you want to dig into
it. IMO, its not a "workaround" if you just actually do need to work with
multiple permissions at different points in
I'm not quite sure how these requirements have arisen as you have not
provided any context as to the actual user or business needs. In my
experience, most businesses and science organisations understand very
clearly what kinds of data they need to store and what they need to do with
that dat
If you are working purely at database level, perhaps best to ask on a
PostgreSQL Mailing List?
On Monday, 14 March 2022 at 16:27:02 UTC+2 boddulur...@gmail.com wrote:
> database function how to write data saave into table in array data
--
You received this message because you are subscribed to
Re issue (1):
https://github.com/django/django/blob/main/django/utils/log.py#L31 shows
how Django uses its own JSON format in `settings.py` to set a link to its
(local) own custom class `ServerFormatter`, which in turn inherits from
Python's logging.Formatter. So it should be possible to creat
Not sure what the "@aproperty" are here for, but in your views.py file, you
could do this calculation, passing in the ID of the staff record:
from .models import Staff, LeaveReportStaff
def get_leave_balance(staff_id):
total_leave_days = Staff.objects.get(pk=staff_id)
leave_reports = Lea
You've already posted the same question:
https://groups.google.com/g/django-users/c/f7ZH2pcZp0s
On Wednesday, 20 April 2022 at 16:44:19 UTC+2 techg...@gmail.com wrote:
> I have a model Staff and LeaveReportStaff, I wanted to get leave_balance
> between Total_Leave_Days and leave_days. I already
101 - 200 of 947 matches
Mail list logo