OK Trying to implement this now and has SQL that works but can't work how
to use the Django ORM to produce it. Here is the proforma SQL:
SELECT *
FROM (
SELECT id, LAG(id, 1) OVER (ORDER BY ) AS
prior, LEAD(id 1) OVER (ORDER BY ) AS next
FROM
) result
WHERE id=;
There's a
I'd use git bisect to find the commit where the behavior changed in Django.
That will likely yield some insight.
https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression
On Friday, March 9, 2018 at 5:39:43 PM UTC-5, Michael Soderstrom wrote:
>
> In a
Hi Im not sure if i am the only one in the Django community who has been
trying to add this feauture for a couple of years Basically what i want is
to let the user upload videos.
I know that you could add the line in your models with a ImageField is that
right?
but then in the template with a
what use Imagefield?, you use FileField is you need the user upload a
video like mp4. avi, mpg etc.
and in your html use tag for render. {{object.video}}
example
Your browser does not support the video tag.
On Mon, Mar 12, 2018 at 1:16 PM, djangorobert
wrote:
> Hi Im not sure if i am th
Hello, I have just finished the django tutorial here
https://docs.djangoproject.com/en/2.0/intro/tutorial01/. But I am still not
sure to write the following intended web application.
The application asks an user to enter his/her name, then to make 30
choices(either choose 1 or 2). At the end
try to create one folder "{% static 'your folder name /file name' %}"also
create static folder
On Tuesday, 13 March 2018 00:46:52 UTC+5:30, djangorobert wrote:
>
> Hi Im not sure if i am the only one in the Django community who has been
> trying to add this feauture for a couple of years Basica
Hi Carlos I figured it out actually i put this {{user.profile.vid.url}}
On Monday, March 12, 2018 at 2:29:11 PM UTC-5, sacrac wrote:
>
> what use Imagefield?, you use FileField is you need the user upload a
> video like mp4. avi, mpg etc.
> and in your html use tag for render. {{object.video}}
Hi,
I have a question on Storage.listdir()
https://docs.djangoproject.com/en/2.0/_modules/django/core/files/storage/#Storage.listdir
It's interface definition says:
List the contents of the specified path. Return a 2-tuple of lists: the
first item being directories, the second item being files.
Hi,
The docs explain that it is possible to publish to the channel layer from
outside of a consumer:
https://channels.readthedocs.io/en/latest/topics/channel_layers.html#using-outside-of-consumers
I
need to do the opposite. I have a fairly complex python script that reads
live data from pu
Thanks for the reply.
So I guess there are actually now two types of templates, and they have
incompatible API. Neither is deprecated.
Has this confused anyone else? Is this a desirable/necessary situation?
I think in order to have consistent template usage in our project we really
need to jus
On 13/03/2018 11:44 AM, Craig de Stigter wrote:
Thanks for the reply.
So I guess there are actually now two types of templates, and they
have incompatible API. Neither is deprecated.
Craig
I don't think your guess is correct. Or at least I'm missing something
if it is!
I remember bringing
I'm probably missing something simple, but I can't get my info to display
from my database.
I have 2 abstract models to make 1 normal model.
My url views aren't giving me errors, the web browser finds them.
My variables aren't correct(I can only assume).
Thanks!
--
You received this message be
Cheers Mike
That deprecation notice says to me that Context itself is not deprecated,
but the `current_app` argument is. I don't think that's a problem for us as
I don't think we've ever used it.
Perhaps I can clarify. As far as I can tell, according to the errors and
deprecation warnings I'm rec
13 matches
Mail list logo