I’m sending from my phone so it won’t have markdown.
It looks like your not defining all of them properly. Put a static folder
you’ll manually in trydjango/trydjango. This will be where Staticfiles_dirs
gathers the files. Then static_root will be where is collectstatic will store
them. Static_U
try
*./manage.py findstatic test.css*
Op vrijdag 29 januari 2021 om 15:52:44 UTC+1 schreef fcip...@gmail.com:
> I’m sending from my phone so it won’t have markdown.
>
> It looks like your not defining all of them properly. Put a static folder
> you’ll manually in trydjango/trydjango. This will b
On Sat, Jan 23, 2021 at 7:41 PM Ryan Nowakowski wrote:
>
> On Sat, Jan 23, 2021 at 11:05:14AM -0800, Larry Martell wrote:
> > On Sat, Jan 23, 2021 at 8:14 AM Ryan Nowakowski wrote:
> > >
> > > A couple of places to look:
> > >
> > > 1. Different domains on the new boxes? You'll need to add the ne
I am trying to programmatically set the model for a Django class-based view
that inherits from CreateView and displays a form for creating a 'member'
object. My problem is that my template is not displaying the form itself.
Note that I override the 'get' method to determine what model the view
System check identified no issues (0 silenced).
January 29, 2021 - 10:09:36
Django version 3.1.5, using settings 'lecture3.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Error: [WinError 10013] An attempt was made to access a socket in a way
forbid
This should either match the URL path of your Django installation or be a
parent of that path.
This sentence is confusing to me.
Suppose my domain name is demo.com , and I have django apps as App1,App2.
Both uses CSRF token. What should be the correct CSRF_COOKIE_PATH here ?
--
You received
On 29/01/2021 05.30, Xorox Chalise wrote:
System check identified no issues (0 silenced).
January 29, 2021 - 10:09:36
Django version 3.1.5, using settings 'lecture3.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Error: [WinError 10013] An attempt
On 29/01/2021 15.56, ule...@gmail.com wrote:
try
/./manage.py findstatic test.css/
The user is running Windows, so I doubt that would work.
Also, what makes you think this would make a difference?
The only thing this would change as far as I can tell is that the users
"python" command is an
Guys gd evening
I need help,really i don't kwnow how to do a multiply two fields, have a
model called Articles.
class Articles(models.Model):
#models article
Nuevo = 'Nuevo'
Semi_nuevo = 'Semi_nuevo'
Usado = 'Usado'
Otros = 'Otros'
STATE_ACTUAL = (
(Nuevo, 'Nuevo'),
(Semi_nuevo,'Semi_nuevo'),
(
data = Articles.objects.all().annotate(result=F('coust_buy') *
F('quantity')).output_field=FloatField('result'),
contains a type for the field "cost_buy" (i.e. not "coust_by").
If that isn't it please give us the traceback.
On Fri, Jan 29, 2021 at 8:50 PM jose angel encinas ramos <
encinasj.an..
Apologies, typo myself!
That meant to say "typo" not "type".
On Fri, Jan 29, 2021 at 9:52 PM Ross Meredith wrote:
>
> data = Articles.objects.all().annotate(result=F('coust_buy') *
> F('quantity')).output_field=FloatField('result'),
>
> contains a type for the field "cost_buy" (i.e. not "cou
Hi Robert
Just looking at the code
Why do you change context to empty?
context = {}
return render(request, self.template_name, context)
Aisophy
2021年1月30日(土) 3:09 Robert F. :
> I am trying to programmatically set the model for a Django class-based
> view that inherits from Create
tanks Ross, i fixed my error but now only show me this
>>> data = Articles.objects.all().annotate(F=('cost_buy') *
F('quantity')).output_field=FloatField('result')
>>> print(data)
>>>
what do you think?
On Fri, Jan 29, 2021 at 2:54 PM Ross Meredith wrote:
> Apologies, typo myself!
>
> That me
You need to read the documentation as always -
https://docs.djangoproject.com/en/3.1/ref/models/expressions/#using-f-with-annotations
It says that the output_field is a keyword argument for the annotate method.
On Fri, Jan 29, 2021 at 10:56 PM jose angel encinas ramos <
encinasj.an...@gmail.com>
14 matches
Mail list logo