If you were accessing a third-party API you could have a ForeignDataWrapper
table linked to it. I have never tried this, and not sure if this would
conflict with Django's ORM expectations.
On Monday, 16 July 2018 16:16:59 UTC+2, micka wrote:
>
> Hello,
>
> I wish I could use the data from an e
If you are looking for a spec for writing an API, you could do worse than:
https://github.com/OAI/OpenAPI-Specification
If you are looking for a Django tool for creating the API, then:
http://www.django-rest-framework.org/
On Wednesday, 18 July 2018 23:32:09 UTC+2, Nuno wrote:
>
> Hi,
> I'm sta
Have a switch that is set to OFF by default (then your tests will switch to
using a mocked approach) and then have test that can only be be run with
direct access to the API if you deliberately set it ON.
No "accidents".
On Tuesday, 24 July 2018 04:21:07 UTC+2, Kum wrote:
>
> Is there a way to
First - please don't hijack another topic; rather start your own.
Second - Django recommends you use pip inside a virtualenv (for
development); see:
https://docs.djangoproject.com/en/2.0/topics/install/#installing-an-official-release-with-pip
On Tuesday, 24 July 2018 15:33:16 UTC+2, Akhil Reddy
Here's a created list of dates (before and after today) and a way to
calculate the offset days relative to today ("now") and alert at a set
interval:
from __future__ import print_function
import datetime
now = datetime.datetime.now()
dates = []
for d in range(7, 0, -1):
dates.append(datetim
I also use the admin for the bulk of my project; if you create custom
pages, you just need to inherit from the standard/default admin template(s)
and overwrite/extend the relevant template blocks. I'd really recommend you
figure out how to do this yourself rather than just copy & paste someone
https://www.twoscoopspress.com/products/two-scoops-of-django-1-11
(Assuming you don't need the cutting-edge version and, to be honest, I'd
think it extremely unlikely that anyone could write a book on a
cutting-edge version of *any* software platform ... and I'd be very
suspicious of such a boo
This is not a Django issue; try and post on a Python mailing list.
(HINT: if you want help with code, then write a function that shows what
you have attempted. No one else will actually write your code for you...)
On Monday, 6 August 2018 14:16:00 UTC+2, tal...@gmail.com wrote:
>
>
> please do
You'll probably need to post some code snippets; what do these functions'
signatures look like and how do they get called?
On Tuesday, 7 August 2018 03:43:01 UTC+2, Gerald Brown wrote:
>
> I have a Django/Python function that creates a Reportab PDF file based on
> the current date. Works GOOD.
*The users who should do the testing say "The new system should be like the
production system."*
You need to let them know ASAP that that is very unlikely to be the case,
unless you are using exactly the same tools. You can probably provide
similar functionality.
Otherwise you are too vague to
Then you'll need to overwrite/customise the admin templates; see:
http://django.readthedocs.io/en/latest/ref/contrib/admin/index.html#overriding-admin-templates
Lots of blogs also cover this topic; e.g.
http://rahmonov.me/posts/customize-django-admin-templates/
(there are may more)
On Saturday, 1
The Django admin is great and will probably provide an 80/20 solution if
you have a purely internal app, used by people who understand data
management. For an externally facing app, used by non-technical people, I
would recommend a custom design.
The Django admin is not hard to customise quite
There's blog article on Excel import here:
https://www.pythoncircle.com/post/591/how-to-upload-and-process-the-excel-file-in-django/
On Thursday, 27 September 2018 01:35:47 UTC+2, BBG wrote:
>
> I want to create upload bulk data. Can anyone share code to upload csv or
> excel file.
>
--
You
Apart from setting up a unique key (user, card, start, end), you may also
want to check if the date range for that card overlaps with another date
range; e.g.
see
https://stackoverflow.com/questions/9044084/efficient-date-range-overlap-calculation-in-python
--> do that check in the clean meth
It looks like they supply an API. So all you should have to do is create
views to process calls to & results from that API. You only need DRF if
you are storing data locally via your own models.
On Monday, 8 October 2018 18:31:28 UTC+2, Caleb Bryson wrote:
>
> Hey guys I am trying to figure out
Your question does not make sense (as written): "To add a new event I would
like to pick from a drop down list of only the events that are in the
future" ..
Why should adding a new event depend on you selecting another event? Are
the events related or dependant in some way; that is not clear?
Have a look at:
http://dev.prodigi.us/post/python-gunicorn-nginx-simpler-and-more-performant-method-deploy-your-django-projects/
On Tuesday, 23 October 2018 02:12:18 UTC+2, ah wrote:
>
> Hi,
> Is there a detailed comprehensive documentation on how to deploy a
> production website using django w
You question is not very clear; perhaps add some code and/or screenshots to
show what you mean.
On Wednesday, 31 October 2018 14:51:15 UTC+2, Fellipe Henrique wrote:
>
> Hi,
>
> Normal ListView result a list with "model"_list as name... there's any
> way to change these name?
>
>
> T.·.F.·.A.·.
And here's a helpful blog post walking you through the basics:
https://simpleisbetterthancomplex.com/tutorial/2016/10/24/how-to-add-social-login-to-django.html
On Thursday, 1 November 2018 23:54:56 UTC+2, Timothy Cook wrote:
>
> I use this and it works great.
> https://django-allauth.readthedocs.
Have a look at:
https://github.com/grantmcconnaughey/django-field-history
and
https://django-simple-history.readthedocs.io/en/latest/
On Tuesday, 11 December 2018 14:31:22 UTC+2, Rupam Hazra wrote:
>
> Hi all,
>
> I have project model.one functionality is when a project delete only*
> is_dele
Its been appropriate for our use case and its far more customisable than
people realise. Plus if you use tools like Grappelli or Django Suite you
can create a really slick looking interface, into which you can plug
customized views and reporting apps that "go beyond" the basic admin
functions
You don't need to create a class; you can just define new settings in the
settings file.
For example, I have added a setting called CUSTOMER. I could have logic
which defines other behavior based on that:
from django.conf import settings
if setttings.CUSTOMER == 'ABC Corp':
logo = 'ABC'
el
quot;,
line 336, in validate_autopk_value
raise ValueError('The database backend does not accept 0 as a '
ValueError: The database backend does not accept 0 as a value for AutoField.
Is there a setting I need to change such that Django does not raise this
error and allows the PK to
nd(db['ENGINE'])
File
"/home/gamesbook/.virtualenvs/s2s/local/lib/python2.7/site-packages/django/db/utils.py",
line 131, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'custom.base' isn't an
available database b
db/utils.py",
line 131, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: 'custom' isn't an available
database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
u'mysql', u'oracle
You need to use a "post save" signal; see:
https://docs.djangoproject.com/en/3.1/ref/signals/#post-save
On Tuesday, 29 September 2020 at 06:23:19 UTC+2 Lightning Bit wrote:
> Hi All,
>
> How would one add a user to a certain Backend group in the Django
> Administration after a user purchases a
se pdb to see if the
postsave_handler function is reached.
On Thursday, 1 October 2020 at 01:04:55 UTC+2 Lightning Bit wrote:
> Thanks Derek!
>
> I tried using the signals but it is not working. This is how my signals
> and models looks:
>
> Signals.py:
> from django.contrib.auth.models i
You can also consider using django-crispy-forms; they have a Bootstrap
styling option:
https://django-crispy-forms.readthedocs.io/en/latest/layouts.html#bootstrap-layout-objects
and also:
https://django-crispy-forms.readthedocs.io/en/latest/install.html#template-packs
(for other styling options
Ryan's suggestion is a very good one.
If you don't need Django-specific commands, you can even write a
stand-alone Python script which accesses your database to do the work. An
alternative to cron that we use, on occasion, is
https://pypi.org/project/APScheduler/ which runs in a container (a P
You'd need to have a profile for each user, so you can track if they reach
the URL (true/false) and then use their email or internal ID or a generated
UUID for the certificate (you could store this extra code as well if
needed).
For generating a certificate, I'd use a PDF format; this would cre
What you want to achieve (labels to the side) is the same example shown in
the Django-crispy-forms README:
https://github.com/django-crispy-forms/django-crispy-forms
On Sunday, 25 October 2020 at 19:46:54 UTC+2 wwran...@gmail.com wrote:
> Hi guys,
>
> Is there any way to improve the distribut
You can try : https://pypi.org/project/xhtml2pdf/
On Tuesday, 27 October 2020 at 11:37:22 UTC+2 senthil...@gmail.com wrote:
> Hi Everyone,
>
> Hope you are doing well
>
> We need help to generate the PDF from the HTML tag with images. Let us
> know if any package available to do this requirement
Have a look at:
https://www.guru99.com/python-mysql-example.html
and then:
https://www.mysqltutorial.org/python-mysql-insert/
https://www.mysqltutorial.org/python-mysql-update/
Not too hard for a beginner.
On Wednesday, 28 October 2020 at 20:43:02 UTC+2 kiran...@gmail.com wrote:
> Hi everyone,
Look at Django's select widgets:
https://docs.djangoproject.com/en/3.1/ref/forms/widgets/#select
If you want a dynamic search type of widget, you'll need a javascript-based
approach; for example:
https://django-autocomplete-light.readthedocs.io/en/master/
On Thursday, 5 November 2020 at 16:06:
Django Suit uses an "enclosed" widget -
https://django-suit.readthedocs.io/en/develop/widgets.html#enclosedinput ;
see also https://getbootstrap.com/docs/4.5/components/input-group/
On Friday, 13 November 2020 at 05:11:24 UTC+2 Mike Dewhirst wrote:
> Does anyone know of a number field widget w
You can also use range;
>>> for i in range(0, 5):
... print(i + 1)
...
1
2
3
4
5
>>>
or in reverse:
>>> for i in range(5, 0, -1):
... print(i)
...
5
4
3
2
1
>>>
On Saturday, 14 November 2020 at 21:26:04 UTC+2 vicker...@gmail.com wrote:
> Python has the enumerate function for these s
multi-select box (i.e. just a long list of unfiltered milestones).
What needs to change in the above code to create a working smart_selects
version?
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
Some other (possibly useful) links are:
* https://www.youtube.com/watch?v=1-7KUHLTqjs - edit data with QGIS instead
of GeoDjango
*
https://stackoverflow.com/questions/19160349/geodjango-geoserver-openlayers-for-dynamic-mapping
- replace "geosever" with "arcmap" and the same principles apply
*
I am not sure the Django mailing list is the best place to get advice on
Flask?
I did have a quick look - my advice would be to create a Docker deployment
(ideally with a pre-built image on DockerHub) to allow quick/fast testing.
On Sunday, 22 November 2020 at 02:43:38 UTC+2 graves@gmail.co
And this: https://stackoverflow.com/help/minimal-reproducible-example
On Monday, 23 November 2020 at 15:59:50 UTC+2 Kasper Laudrup wrote:
> On 11/23/20 9:05 AM, Charles Freeman wrote:
> > Hey everyone I can't create a custom user model. Every time I try to
> > create super user I end up with an
You may want to try some of the approaches given in this StackOverflow:
https://stackoverflow.com/questions/15453072/django-serializers-to-json-custom-json-output-format
On Sunday, 6 December 2020 at 19:02:31 UTC+2 wwran...@gmail.com wrote:
> Hi mates,
>
> I want to get json serialized the name
/django-postgres-large-time-series
https://medium.com/smart-digital-garden/timescaledb-and-django-5f2640b28ef1
https://pypi.org/project/django-timescaledb/
https://docs.timescale.com/latest/using-timescaledb
Derek
On Sunday, 13 December 2020 at 18:35:58 UTC+2 Franck DG wrote:
> Hello,
>
This is a spatial query problem, not a Django one.
Suggestion: use PostgreSQL and PostGIS and look at this:
https://gis.stackexchange.com/questions/107277/getting-points-along-line-at-defined-distance-using-postgis/203551
HTH
Derek
On Tuesday, 5 January 2021 at 16:12:59 UTC+2 jfa...@inerza.com
Another option if you want to show actual data, but only a portion, is to
use an incremental lookup via an app
such https://django-autocomplete-light.readthedocs.io/en/master/ - this
works in the Admin as well.
On Saturday, 30 January 2021 at 20:58:00 UTC+2 Ryan Nowakowski wrote:
> On Wed, Jan
You''ll probably not get a unbiased opinion. Devs who work with Java as
their primary language are going to pick Spring; and the opposite in the
case of Python.
If you already have much Java experience and don't want to start learning
Python, then rather go on with Spring.
Some comments over a
.NoReverseMatch: Reverse for
'locales_site_changelist' not found. 'locales_site_changelist' is not a
valid view function or pattern name.
Is there some simple reason why reverse lookup does not work when testing?
(I actually need to use it in a client post request.)
Thanks
Dere
I agree with Lars. You have said very little about your actual situation;
my concern would be that if someone was appointed to develop a web-based
system that was expected to scale that big and that fast I would expect (in
fact, if I was the project funder I would *demand*) that you already have
Have a look at the last answer in this SO question:
https://stackoverflow.com/questions/8414584/how-to-get-month-of-a-date-in-a-django-queryset/43505881
On Sunday, 4 April 2021 at 07:32:41 UTC+2 azharul.t...@gmail.com wrote:
> Hello ,
> I am trying to get only month name and count number from *Q
Our IT dept. will typically set up a virtual machine, with you as admin,
into which you can install your own software. Provided it will not be
visible outside the company's firewall, this is usually not an issue for
them.
On Thursday, 1 April 2021 at 15:14:13 UTC+2 Ryan Nowakowski wrote:
> I t
We have done something similar, but for a rectangular layout you may be
able to also use a simple HTML table, or a series of nested "div"s (with
appropriate styling).
On Tuesday, 6 April 2021 at 01:42:17 UTC+2 sammym...@gmail.com wrote:
> This was of great help, thanks!
>
>
> On Mon, Apr 5, 2
e
(https://pypi.org/project/django-limits/) can ensure they do not exceed
their allowed number.
4. For generation of an ID to help track products (I assume you mean like
goods that are being sold), have a look at the UUIDField
- https://www.geeksforgeeks.org/uuidfield-django-models/
HTH
Are you using MySQL?
https://stackoverflow.com/questions/371/does-mysql-ignore-null-values-on-unique-constraints
On Wednesday, 7 April 2021 at 08:07:35 UTC+2 Mike Dewhirst wrote:
> I have just made a CharField unique and Django detects duplicates nicely
> but seems to ignore multiple insta
I'd use:
querye = Product.objects.filter(id=sell_id).values('title')
title = querye[0]['title'] # get the title for the first Product
But if you're sure there is one (and only one) product matching the
'sell_id', you can use:
querye = Product.objects.get(id=sell_id)
title = querye.title
HTH
The docs cover this use case:
https://docs.djangoproject.com/en/3.2/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other
On Saturday, 24 April 2021 at 19:57:50 UTC+2 robert...@gmail.com wrote:
>
>
> Hello guys!
>
> I've 3 fields, but I need validate it as a group, Ej:
>
I think you have used the wrong name - "saveit" instead of "save" - also
have a look at the example in the docs:
https://docs.djangoproject.com/en/3.2/topics/db/models/#overriding-predefined-model-methods
and see which parameters are needed for it.
On Saturday, 24 April 2021 at 20:50:15 UTC+2 enc
Someone has an example of doing just this:
https://arshovon.com/blog/django-custom-command/
On Thursday, 29 April 2021 at 19:39:36 UTC+2 Ryan Nowakowski wrote:
> Typically you would write a custom management command for this kind of
> thing:
>
> https://docs.djangoproject.com/en/3.2/howto/cust
ar of links should change to the named headings on
that page. When a heading is clicked the page should relocate itself so
that heading is at the top" at all, sorry. Maybe a follow-up post with a
picture (== 1000 words)?
Derek
On Monday, 3 May 2021 at 08:57:25 UTC+2 Mike Dewhirst wrote:
Mike Dewhirst wrote:
> Derek
>
> My phone doesn't do interspersed responses well, so my apologies for top
> posting.
>
> The record to which I refer is any one of those in any list page.
>
> After clicking one, if that record has any 1:1, 1:n or n:m related
> records,
You'll need to use javascript for this - have a look
at https://data-flair.training/blogs/ajax-in-django/ for an example.
On Wednesday, 5 May 2021 at 05:30:59 UTC+2 sali...@rohteksolutions.com
wrote:
> When user click to like a post the web page should not refresh(redirect)
> and count of the
Perhaps install Linux and work from there?
https://www.howtogeek.com/363331/how-to-set-up-and-use-linux-apps-on-chrome-os/
It may be that PostgreSQL is too demanding and can be avoided for
development purposes; rather use sqlite.
It could also be worth considering to switching to cloud-based CI
There are many types of constants. We have a 'utils' directory (at same
level as 'apps') and under that 'constants' sub-directory - with different
files for different types of constants that are generally applicable across
all apps. But because we have lots of client-specific constants and codi
This does look a programming exercise in a class... if you ask these
questions in future, be warned people here will probably ask to see your
attempt at writing code first (otherwise you are not really learning to be
a programmer).
But, OK, it seemed interesting to me,so here is one approach:
Field()
def _the_svg(self):
return """%s""" % self.svg_text
_the_svg.allow_tags = True
I am not sure about editing visually, however - I would expect that would
require a specialised widget.
HTH
Derek
On Tuesday, 1 June 2021 at 03:28:59 UTC+2 Mi
#modifying-a-change-list-using-list_display
(Please note that to show HTML strings, you need to use the format_html()
method. Ignore mt previous reference to "allow_tags" as this is deprecated.)
Derek
On Wednesday, 2 June 2021 at 10:05:11 UTC+2 Mike Dewhirst wrote:
> On 1/06/2021 11:44 pm,
Hi Mike
OK, if you have more specific feedback I will try to respond.
I doubt you need a specific template as the SVG should be displayable by a
modern browser using Django's built-in options.
On Thursday, 3 June 2021 at 01:10:07 UTC+2 Mike Dewhirst wrote:
> Derek
>
> I pre
rpose.
If you want to see it as "read only" in the form, but shown as SVG, perhaps
you need a custom model template
(https://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model)
Derek
On Thursday, 3 June 2021 at 08:22:57 UTC+2 Mike Dewhir
Dewhirst wrote:
> Thanks Derek - it is now working as follows ...
>
>
> class Chemical(models.Model):
> ...
> ddstructure = models.TextField(null=True, blank=True, verbose_name="2D
> structure")
> ...
>
>
> class Svg_AdminTextareaWidget(AdminTexta
At a guess, I'd say you will need Django Channels - many blogs and
tutorials out there, but here is one good worked example:
https://blog.logrocket.com/django-channels-and-websockets/
On Monday, 14 June 2021 at 15:32:51 UTC+2 lkh...@gmail.com wrote:
> It is currently returning after receiving a
>From your Order model, it seems that all the user would need to do is
supply the value of "count" representing multiples of one item in a single
order.
On Thursday, 15 July 2021 at 15:35:37 UTC+2 tiwar...@gmail.com wrote:
> Hello community!
> I hope you all are in best health. I've been workin
See:
https://stackoverflow.com/questions/54412377/adding-values-to-django-queryset
VIEW
def position_view(request):
packet_data = TncData.objects.exclude(lat=0).order_by('-dt_heard')[:100]
for packet in packet_data:
*# my complex math calculation*
*packet.distance = "#
Ignore the "'distance': distance" in the return - that should not be there.
On Wednesday, 21 July 2021 at 15:55:08 UTC+2 Derek wrote:
> See:
> https://stackoverflow.com/questions/54412377/adding-values-to-django-queryset
>
>
> VIEW
>
> def po
Docker has a short tutorial on their website:
https://docs.docker.com/samples/django/
On Sunday, 1 August 2021 at 04:48:54 UTC+2 parampal...@gmail.com wrote:
> I have two docker container one is postgresql
>
>
>
>
> And second one is django container
> how i connect this two container
>
> So
You mean like https://pypi.org/project/django-autocomplete-light/ ?
On Wednesday, 4 August 2021 at 20:45:16 UTC+2 Federico Capoano wrote:
> Hi everyone,
>
> when adding adming filters by foreign key in the admin, sometimes the
> possible values are too many to load.
>
> So I am thinking, why not
Alternatively, there is
: https://pypi.org/project/django-admin-autocomplete-filter/
(My own issue with that one s that does not necessarily match any custom
styling, but that is probably not a problem for most.)
On Friday, 6 August 2021 at 07:53:35 UTC+2 Derek wrote:
> You mean like ht
There is not sufficient data in that image to create models. You don't
know the field types, for example.
Once you have those, it should not be too hard e.g.:
from django.db import models
class Product(models.Model):
product_id = models.AutoField()
name = models.CharField( max_length=2
Have a look at https://django-formtools.readthedocs.io/en/latest/
This includes the ability to skip steps based on information already
supplied -
https://django-formtools.readthedocs.io/en/latest/wizard.html#conditionally-view-skip-specific-steps
On Thursday, 23 September 2021 at 20:37:03 UTC+2
#x27;admin:myapp_mymodel_changelist'))
i.e. if I comment out the import line the code works, otherwise it fails.
Any ideas on why Django is failing when importing from the app's admin?
Thanks
Derek
--
You received this message because you are subscribed to the Google Groups
"Djang
Obviously you will be searching in related table.
So if you have models.py like:
class Author(models.Model):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
class Book(models.Model):
title = models.CharField(max_length=200)
author = mod
o_modeltwo_changelist' is not
a valid view function or pattern name.
/home/derek/miniconda3/envs/tp32/lib/python3.9/site-packages/django/urls/resolvers.py:677:
NoReverseMatch
During normal use, the app behaves fine and any other tests not requiring
reverse all work OK.
What could cause the
Widely discussed on the web - here is one such example:
https://stackoverflow.com/questions/961188/disable-browsers-back-b
On Saturday, 20 July 2019 02:40:47 UTC+2, AKSHAY BHUVA wrote:
>
>
> Disable Back button after login...
> please help me..
>
>
>
>
>
>
--
You received this message b
You're better off adopting an existing CMS built on top of Django, and
checking how close its feature set matches your needs. If there is a gap,
then contact the developers to see how that gap could be closed.
Some examples:. https://www.django-cms.org/en/features/list/ or
https://wagtail.i
This can be achieved using available Django functionality (views and
forms). Its not really a project but can certainly be part of one.
On Thursday, 15 August 2019 16:25:52 UTC+2, Django Dojo wrote:
>
> I’m trying to find out if there’s any Django packages for this type of
> project?
>
> On Thu
You may want to work through a tutorial on user registration.
Once you see the general approach, you'll be better able to see where you
need to add your custom business logic (e.g. "check for an existing user").
https://pythonprogramming.net/user-registration-django-tutorial/
On Tuesday, 20 Au
You need to separate out the "core" functionality of your action - the part
that processes the records - into a stand-alone function. This function
can then be also called from your view(s) that currently handles the
various HTTP requests you list.
On Sunday, 25 August 2019 15:00:35 UTC+2, Eze
Agreed - Mike's suggestion is a very sensible one. In the short term,
supporting 2 and 3 could be very useful, until you have the option to drop
support for 2.
https://six.readthedocs.io/
On Wednesday, 25 September 2019 01:00:44 UTC+2, Mike Dewhirst wrote:
>
> I think the original question wa
http://www.mysqltutorial.org/mysql-insert-into-select/
On Monday, 16 September 2019 17:05:57 UTC+2, Mahendhar Reddy wrote:
>
> how to copy one table content in to another table in database
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To un
ems most popular these days.
My 2c
Derek
On Wednesday, 9 October 2019 19:32:17 UTC+2, Jani Tiainen wrote:
>
> Hi.
>
> I've been working with Django about 10 years and yet I haven't need for
> overriding admin.
>
> Admin is great tool for CRUD while developing but I would
Not sure what you mean by "overwrite" - there are lots of ways to extend or
customise Django admin, not the least of which is retheming it e.g. Django
Suite or Grappelli.
On Wednesday, 9 October 2019 10:11:27 UTC+2, Jérôme Le Carrou wrote:
>
> I am newbie in DJango
> I've started to read Djang
Does the normal logging work i.e. are you seeing those errors reported in
the log files? And do you have trapping/handling for the email-sending
code as well?
Also have a look at:
https://stackoverflow.com/questions/15128135/setting-debug-false-causes-500-erro
for a brief discussion around the
For your filter problem, you probably need to use:
https://github.com/farhan0581/django-admin-autocomplete-filter
On Tuesday, 22 October 2019 00:07:40 UTC+2, Wil Moskal wrote:
>
> I have a model registered to the admin page, AuthUserFilePermissions,
> which consists of 2 foreign keys, a key to
he
> error log file if they occur outside the Django Admin. However, the error
> with the change form in the admin does not occur in the logfiles. Same
> behaviour as with the error mailing.
>
> Op woensdag 23 oktober 2019 10:57:05 UTC+2 schreef Derek:
>>
>> Does t
It is not clear if those fields can be used in the admin list interface
drop-down filters - is there a link to documentation for that?
On Wednesday, 23 October 2019 16:13:13 UTC+2, Nelson Varela wrote:
>
> Or even better... whu not use django's own auto complete feature in the
> admin:
> https:
Have a look at https://django-leaflet.readthedocs.io/en/latest/
On Sunday, 27 October 2019 01:42:24 UTC+2, Perceval Maturure wrote:
>
>
> Hi all
> How do u wire your template and view to display maps in Django leaflet
>
> Sent from my iPhone
>
--
You received this message because you are sub
https://docs.djangoproject.com/en/2.2/ref/models/fields/#editable
On Wednesday, 6 November 2019 18:35:48 UTC+2, Ray Z wrote:
>
> Hey Everyone,
>
> Im very new to django and im trying to figure out how to make a field on
> a forum read only. The field is my date created field that has a automati
I can see it - but I guess that does not help you?
On Wednesday, 20 November 2019 13:50:01 UTC+2, tramites xpress drive wrote:
>
> Why I am not able to see the post that I write on this group?
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
T
This is an old post but one that helped me when I first working on this:
https://www.jpichon.net/blog/2010/08/django-admin-actions-and-intermediate-pages/
On Tuesday, 19 November 2019 16:54:25 UTC+2, Thiago Luiz Parolin wrote:
>
> I have a form in admin that when selecting a particular action, pr
You can use built-in Django ORM methods to perform calculated operations on
existing models (you don't need a new model).
See: https://docs.djangoproject.com/en/3.0/topics/db/aggregation/
For more complex operations, you can write "raw" SQL
-see https://docs.djangoproject.com/en/3.0/topics/db/s
:
>
> Thank you very much Derek.
>
> You always provide nice help.
>
> Can we generate graphs for reports in Django Admi n.
>
>
>
>
> On Saturday, December 14, 2019, Derek >
> wrote:
>
>> You can use built-in Django ORM methods to perform calculated operati
For a better looking admin, try:
* https://django-grappelli.readthedocs.io/en/latest/
* https://djangosuit.com/
For "admin issues" you'll need to be more specific. There are very few, if
any, unsolved bugs in the Admin code
On Thursday, 9 January 2020 21:02:03 UTC+2, APIJAY SHARMA wrote:
>
There is a long discussion about "not equals" here:
https://stackoverflow.com/questions/687295/how-do-i-do-a-not-equal-in-django-queryset-filtering
I am sure you can adapt one of the suggestions there for your specific
needs.
On Friday, 10 January 2020 14:35:48 UTC+2, Ezequias Rocha wrote:
>
>
701 - 800 of 947 matches
Mail list logo