Re: Template not found error

2024-11-12 Thread ALINDA Fortunate
ce of Gulu University. @FortunateAlinda Passionate about Python Development And Computer related Dynamics On Tue, Nov 12, 2024, 08:09 Abdul Qoyyuum Haji Abdul Kadir < abdul.qoyy...@gmail.com> wrote: > The errors are pretty clear here: > > *Template-loader postmortem* > Django t

Re: Template not found error

2024-11-11 Thread Abdul Qoyyuum Haji Abdul Kadir
The errors are pretty clear here: *Template-loader postmortem* Django tried loading these templates, in this order: Using engine django: - django.template.loaders.filesystem.Loader: /storage/emulated/0/pro/templates/land/lands.htmI (Source does not exist

Re: Template not found error

2024-11-11 Thread Walter Randazzo
Did you add the app to the settings.py lists of apps? El lun, 11 nov 2024 a las 14:20, Heman Okumbo () escribió: > Hello everyone, how comes the template lands.html is not working? while > the template -loader postmortem shows that it has searched the > directory/storage/emula

Re: In django template cannot get data from values_list() for select options dropdown

2024-09-27 Thread Abdul Qoyyuum Haji Abdul Kadir
Maybe change this: Province.objects.values_list("id", "province_name") to this: Province.objects.values_list("id") Although that doesn't explain the [] around 1. Are there multiple ids per province_name? On Fri, 27 Sept 2024 at 22:05, Cương Vũ Thế wrote: > Im django noob here so I would like t

In django template cannot get data from values_list() for select options dropdown

2024-09-27 Thread Cương Vũ Thế
Im django noob here so I would like to get your support. Thank you so much in advanced. *1. My model.py:* class Province(models.Model): province_name = models.CharField() class Employee(models.Model): first_name = models.CharField() province = models. ForeignKey(Province, on_delete=models.CAS

Re: How to format datetime stamp in JS like it is doing by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
pt it in > JavaScript. Here's how you can do it: > > > > Retrieve the date and time format defined by Django in your JavaScript > file using a Django template rendering method. > > > > > > > > // Get the date and time fo

Re: How to format datetime stamp in JS like it is doing by the date template tag?

2024-03-21 Thread Matthias Yeni
To format the timestamp in JavaScript according to the format defined by Django, you can use Django settings to determine the format and adapt it in JavaScript. Here's how you can do it: Retrieve the date and time format defined by Django in your JavaScript file using a Django tem

How to format datetime stamp in JS like it is done by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
Hello everyone, I am customizing Django admin by adding a datetime stamp to the page using JavaScript. I want to format the datetime stamp according to the format set by Django. It is possible to get the DATETIME_FORMAT using the get_format() method in JS which is "'j M Y, P'". But, this for

How to format datetime stamp in JS like it is doing by the date template tag?

2024-03-21 Thread the.one.abo...@gmail.com
Hello, I have customizing Django admin by adding a datetime stamp to the page using JavaScript. I want to format the datetime stamp according to the format set by Django. It is possible to get the DATETIME_FORMAT using the get_format() method in JS. But, this format is not supported by the D

Re: Registration form in template

2024-03-19 Thread Clive Bruton
If you want to override what the form is showing, then you can build your own template and only include the elements that you wish to show. Rather than use: {{ form }} use: {{ form.field_name }} or break it down further, like: {{ form.field_name.html_name }} etc

Registration form in template

2024-03-17 Thread 'Simon Connah' via Django users
I have a register user template with a form which works well but I have a problem where there is lots of other text next to the form elements such as password length and what characters need to go in a password. Is their a reasonable way to hide that text or do I need to do it with JavaScript

Re: Unit test to make sure correct template is returned from a specific URL?

2023-09-25 Thread Abhishek ozha
ups.com> wrote: > >> I can write a unit test which checks say the title on a page and compares >> it to a string but that is really prone to breakage. What I want to do >> instead is to check that the template that is returned by the URL is the >> same one that is

Re: Unit test to make sure correct template is returned from a specific URL?

2023-09-25 Thread 'Simon Connah' via Django users
Sun, 24 Sept 2023 at 22:37, 'Simon Connah' via Django users > wrote: > > > I can write a unit test which checks say the title on a page and compares > > it to a string but that is really prone to breakage. What I want to do > > instead is to check that the templat

Re: Unit test to make sure correct template is returned from a specific URL?

2023-09-25 Thread Muhammad Juwaini Abdul Rahman
the title on a page and compares > it to a string but that is really prone to breakage. What I want to do > instead is to check that the template that is returned by the URL is the > same one that is expected in the unit test. Is there an easy way to do this? > > -- > You

Unit test to make sure correct template is returned from a specific URL?

2023-09-24 Thread 'Simon Connah' via Django users
I can write a unit test which checks say the title on a page and compares it to a string but that is really prone to breakage. What I want to do instead is to check that the template that is returned by the URL is the same one that is expected in the unit test. Is there an easy way to do this

Re: template css issue

2023-06-07 Thread Sebastian Jung
> Here I have attached two files. These files are the email template sent > from the django project to the outlook. The template looks correct and the > css is working fine when I send the email from local but the css is not > working when I deploy it to the server. You can see the diff

Re: template css issue

2023-06-06 Thread DieHardMan 300
Did you collectstatic and config Nginx to serve the static folder? It's happen to me sometimes when I deploy project to server. ในวันที่ วันพุธที่ 7 มิถุนายน ค.ศ. 2023 เวลา 13 นาฬิกา 42 นาที 01 วินาที UTC+7 Praveen Chaudhary เขียนว่า: > This is the original template and it's wo

Re: template css issue

2023-06-06 Thread Praveen Chaudhary
This is the original template and it's working locally. Thank you! Your E-mail has been received Prabin Chaudhary +977-9840193890 *https://www.linkedin.com/in/icedreamerpraveen/ <https://www.linkedin.com/in/icedreamerpraveen/>* Software Engineer | Youth Innovation Lab On Wed, 7 Jun

Re: Template doesn't run in browser

2023-06-03 Thread Safaet Jaman
Thank you Ryan Nowakowski. This now worked properly. On Saturday, June 3, 2023 at 5:17:47 AM UTC+6 Ryan Nowakowski wrote: > Maybe you need to add your projects app to settings.INSTALLED_APPS? > Here's an example of how to do that from the tutorial: > > https://docs.djangoproject.com/en/4.2/int

Re: Template doesn't run in browser

2023-06-02 Thread Muhammad Juwaini Abdul Rahman
Folder `projects` should be inside `templates`. Right now the folder is named 'templates/projects`. Please fix that first. On Friday, 2 June 2023 at 22:04:03 UTC+8 Safaet Jaman wrote: > > [image: Screenshot 2023-06-02 105157.png][image: Screenshot 2023-06-02 > 105348.png] -- You received this

Re: Template doesn't run in browser

2023-06-02 Thread 'Kasper Laudrup' via Django users
If you want someone to spend their time writing a proper answer, start by writing a proper question. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: How to get data from another function in view to show it on template ?

2023-04-04 Thread 'Kasper Laudrup' via Django users
On 03/04/2023 18.44, Ravindra Magar wrote: How to get data from another function in view to show it on a template? You call the function like you'd call any other function and pass the data in the context given to the template you want to render. Kind regards. Kasper Laudrup -

Re: How to get data from another function in view to show it on template ?

2023-04-04 Thread Shailesh Yadav
data from another function in view to show it on a template? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-user

How to get data from another function in view to show it on template ?

2023-04-04 Thread Ravindra Magar
How to get data from another function in view to show it on a template? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Template Filter - stringformat issue

2023-03-14 Thread DieHardMan 300
I tried Django template built-in filter "stringformat" to fixed string length to 3 for example assume I have variable name "data" contain "A1" I want to display this variable as "A1 " (1 blank space) so my code is {{ data|stringformat:":<3s"

Re: How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-03-02 Thread Boris Pérez
One way could be latest_action=ActionGame.obje cts.filter(published=published).order_by('-id')[:1] El jue, 2 mar 2023 a las 17:29, Sandip Bhattacharya (< sand...@showmethesource.org>) escribió: > Your problem is still about where the 'published’ value is coming from in > the call to filter(publi

Re: How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-03-02 Thread Sandip Bhattacharya
Your problem is still about where the 'published’ value is coming from in the call to filter(published=published). Is it coming from a form? A Get parameter? A post parameter? Extract it appropriately before calling filter() > On Mar 2, 2023, at 3:46 AM, Byansi Samuel wrote: > > def action (

Re: How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-03-02 Thread Byansi Samuel
Andréas Kühne wrote: > Se comments below. > > > Den fre 24 feb. 2023 kl 12:14 skrev Byansi Samuel < > samuelbyans...@gmail.com>: > >> Hey everyone, l got a problem. Am trying to retrieve a single latest >> object added everytime, and display it in the template. &

Re: How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-02-28 Thread Andréas Kühne
e > wrote: > >> Se comments below. >> >> >> Den fre 24 feb. 2023 kl 12:14 skrev Byansi Samuel < >> samuelbyans...@gmail.com>: >> >>> Hey everyone, l got a problem. Am trying to retrieve a single latest >>> object added everytime, and di

Re: How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-02-28 Thread Dev Femi Badmus
byans...@gmail.com>: > >> Hey everyone, l got a problem. Am trying to retrieve a single latest >> object added everytime, and display it in the template. >> Below is my codes but; >> >> Help me figure it out the source of the problem in these different >> i

Re: How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-02-28 Thread Andréas Kühne
Se comments below. Den fre 24 feb. 2023 kl 12:14 skrev Byansi Samuel : > Hey everyone, l got a problem. Am trying to retrieve a single latest > object added everytime, and display it in the template. > Below is my codes but; > > Help me figure it out the source of the problem in

How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-02-24 Thread Byansi Samuel
Hey everyone, l got a problem. Am trying to retrieve a single latest object added everytime, and display it in the template. Below is my codes but; Help me figure it out the source of the problem in these different instances below 👇 ___ issue number 1___ #Action

Re: IMPORTING HTML CSS TEMPLATE TO DJANGO

2023-01-27 Thread Luciano Martins (luxu)
you have to put the static files and give their path inside the HTML Em sexta-feira, 27 de janeiro de 2023 às 11:18:14 UTC-3, jack...@gmail.com escreveu: > I want to know the line of error so that I can make them follow the static > folder -- You received this message because you are subscrib

Re: HOW TO OUTPUT DATA GOT FROM combined queryset IN DJANGO TEMPLATE (html file) ?

2023-01-16 Thread Byansi Samuel
toring that list in the variable combined_list. The >context variable is not created correctly, it should be context = >{'combined_list': combined_list} >2. > >In the template others/os/windows_game.html, to output the results of >the combined_list you sh

Re: HOW TO OUTPUT DATA GOT FROM combined queryset IN DJANGO TEMPLATE (html file) ?

2023-01-14 Thread Hector Mwaky
n to combine the two querysets into a single list, and storing that list in the variable combined_list. The context variable is not created correctly, it should be context = {'combined_list': combined_list} 2. In the template others/os/windows_game.html, to

Re: If Statement django template

2023-01-12 Thread ASAMOAH EMMANUEL
name` attribute, you can use: {% if contract.supplier.name == 'IBM' %} Alternatively, you could also use a `filter()` method on your `QuerySet` to filter the contracts by their supplier name before passing them to the template. contracts = Contract.objects.filter(supplier__name='IBM&

Re: If Statement django template

2023-01-12 Thread Precious Olusola
ls.CASCADE, > verbose_name="Supplier Name", > related_name="contract_suppliers", > ) > > I am trying to include an if statement in my template but the following > does not work: > {% if contract.supplier == 'IBM' %} >

Re: If Statement django template

2023-01-12 Thread Peter Benjamin Ani
wing relationship in a model >> >> class Contract(models.Model): >> supplier = models.ForeignKey( >> Supplier, >> on_delete=models.CASCADE, >> verbose_name="Supplier Name", >> related_name="contract_suppliers

HOW TO OUTPUT DATA GOT FROM combined queryset IN DJANGO TEMPLATE (html file) ?

2023-01-12 Thread Byansi Samuel
Hey! Am having a problem. And l request for your Help. Am having 3 apps in Django project - action - adventure - others #action/ models.py class Action(models.Model): name=models.Charfield() os= models.Charfield( choices=OS) #adventure/models.py class Adventure(model

Re: If Statement django template

2023-01-12 Thread Namanya Daniel
Supplier, > on_delete=models.CASCADE, > verbose_name="Supplier Name", > related_name="contract_suppliers", > ) > > I am trying to include an if statement in my template but the following > does not work: > {% if contract.supplier == &#

Re: If Statement django template

2023-01-12 Thread Peter Benjamin Ani
ls.Model): > supplier = models.ForeignKey( > Supplier, > on_delete=models.CASCADE, > verbose_name="Supplier Name", > related_name="contract_suppliers", > ) > > I am trying to include an if statement in my template

If Statement django template

2023-01-12 Thread 'dtdave' via Django users
n if statement in my template but the following does not work: {% if contract.supplier == 'IBM' %} If I replace this with a non-foreign key item then it works fine. Any help would be appreciated. -- You received this message because you are subscribed to the Google Groups "Djang

Re: Template inheritance not working

2022-11-19 Thread Chukwudi Onwusa
You can WhatsApp me on 08125409314, screenshot short your error page and send, together with with inherited template and your parent template. On Sat, Nov 19, 2022, 18:10 Alec Delaney <96alecpatr...@gmail.com> wrote: > Okay, Cause I am looking for another example for template in

Re: Template inheritance not working

2022-11-19 Thread subin
, Nov 18, 2022 at 10:04 PM Chukwudi Onwusa >> wrote: >> >>> What error is it showing you? >>> Please send a picture of it. Remember you can save your base with your >>> desired name, but you should also not that you should register your >>> templates director

Re: Template inheritance not working

2022-11-19 Thread subin
gt; >> >> On Fri, Nov 18, 2022 at 10:04 PM Chukwudi Onwusa >> wrote: >> >>> What error is it showing you? >>> Please send a picture of it. Remember you can save your base with your >>> desired name, but you should also not that you should register

Re: Template inheritance not working

2022-11-19 Thread subin
>> wrote: >> >>> What error is it showing you? >>> Please send a picture of it. Remember you can save your base with your >>> desired name, but you should also not that you should register your >>> templates directory in settings template list a

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
you dont have zoom? On Sat, Nov 19, 2022 at 12:09 PM Alec Delaney <96alecpatr...@gmail.com> wrote: > Okay, Cause I am looking for another example for template inheritance > > > On Sat, Nov 19, 2022 at 11:54 AM Chukwudi Onwusa > wrote: > >> On WhatsApp >>

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
Okay, Cause I am looking for another example for template inheritance On Sat, Nov 19, 2022 at 11:54 AM Chukwudi Onwusa wrote: > On WhatsApp > > On Sat, Nov 19, 2022, 17:14 Alec Delaney <96alecpatr...@gmail.com> wrote: > >> Hello, would you be available for zoom? >&

Re: Template inheritance not working

2022-11-19 Thread Chukwudi Onwusa
Remember you can save your base with your >> desired name, but you should also not that you should register your >> templates directory in settings template list as [BASE_DIRS/ "templates"] >> and Incase your template files are in an embedded directory ins

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
es directory in settings template list as [BASE_DIRS/ "templates"] > and Incase your template files are in an embedded directory inside your > templates directory, kindly do well to correct it as > "embeddedDirectory/baseName.html" and also correct your views for ot

Re: Template inheritance not working

2022-11-18 Thread Chukwudi Onwusa
What error is it showing you? Please send a picture of it. Remember you can save your base with your desired name, but you should also not that you should register your templates directory in settings template list as [BASE_DIRS/ "templates"] and Incase your template files are in a

Re: Template inheritance not working

2022-11-18 Thread David Emanuel Sandoval
The base template contains the default content, and blocks with default contents in it. Then, in the child template, you can override those blocks. El vie, 18 nov 2022 17:54, Alec Delaney <96alecpatr...@gmail.com> escribió: > Hello. How are you? Can I see another example of template in

Re: Template inheritance not working

2022-11-18 Thread Alec Delaney
Hello. How are you? Can I see another example of template inheritance? On Mon, Oct 31, 2022 at 2:34 PM Ammar Mohammed wrote: > Hello dear > There is a little mistake in your code : > You should put the {%block block_name %} in your base template with no > code and the put the code

Re: Template inheritance not working

2022-11-08 Thread Alec Delaney
Thank you! On Mon, Oct 31, 2022 at 2:34 PM Ammar Mohammed wrote: > Hello dear > There is a little mistake in your code : > You should put the {%block block_name %} in your base template with no > code and the put the code you want to be displayed in your child template > fi

Re: HOW TO GET DJANGO MODELS FIELD VALUE FROM MODEL OBJECT IN TEMPLATE TAGS-DJANGO

2022-11-07 Thread James
Hi; There's a method you're supposed to override in your views (inherit from Views) to do what you want, it's called "get_context_data". This method will pump whatever data you send to it into your template tags. On Sunday, November 6, 2022 at 4:15:35 AM UTC-7 rani.

Re: HOW TO GET DJANGO MODELS FIELD VALUE FROM MODEL OBJECT IN TEMPLATE TAGS-DJANGO

2022-11-06 Thread Kala Rani
(auto_now_add = True) >> updated_at = models.DateTimeField(auto_now=True) >> >> def __str__(self): >> return self.region_name >> >> >> views.py >> >> def center(request): >> locations = Locations.objects.select_related('region') >&

Re: HOW TO GET DJANGO MODELS FIELD VALUE FROM MODEL OBJECT IN TEMPLATE TAGS-DJANGO

2022-11-06 Thread Sebastian Jung
alizer = LocationSerializer(locations,many=True) > x=td_serializer.data > data = { > 'td':td_serializer.data, > #'centers':center_serializer.data, > } > return response.Response(data,status.HTTP_200_OK) > > > > > template: > > fetchLocationsList(){ > this.$axio

HOW TO GET DJANGO MODELS FIELD VALUE FROM MODEL OBJECT IN TEMPLATE TAGS-DJANGO

2022-11-06 Thread Kala Rani
egion') td_serializer = LocationSerializer(locations,many=True) x=td_serializer.data data = { 'td':td_serializer.data, #'centers':center_serializer.data, } return response.Response(data,status.HTTP_200_OK) template: fetchLocationsList(){ this.$axios.$post('/projects/chce

Re: Template inheritance not working

2022-11-02 Thread peteru mimo
Your template inheritance cannot be index.html make it base.html and put whatever you want to be display in all pages on it then extends it in index page and other page On Wed, Nov 2, 2022 at 10:26 AM FLAVIEN HERI wrote: > can it be the problem of the first block content which is empty

Re: Template inheritance not working

2022-11-02 Thread FLAVIEN HERI
ame %} in your base template with no code > and the put the code you want to be displayed in your child template file > Here is an example : > > // file.html : > > {% extends "index.html" %} > > {% block content %} > Hello, this is a test. &g

Re: Template inheritance not working

2022-10-31 Thread Ammar Mohammed
Hello dear There is a little mistake in your code : You should put the {%block block_name %} in your base template with no code and the put the code you want to be displayed in your child template file Here is an example : // file.html : {% extends "index.html" %} {% block conten

Template inheritance not working

2022-10-31 Thread Alec Delaney
I have been trying to get my templates to work but they have been ineffective. here is my code: {% extends "index.html" %} Document {% block content %} {% endblock %} //index.html: Document {% block content %} Hello, this is a test.

Re: error extending base template

2022-10-11 Thread Chukwudi Onwusa
Give space in the html template tag I mean {% extends 'base.html' %} But if the base is nested inside a directory inside the template directory pls name the '../base.html' according. Thanks Hope it will be help. On Mon, Oct 10, 2022, 16:11 Namanya Daniel wrote: > hello,

Re: error extending base template

2022-10-10 Thread ASAMOAH EMMANUEL
Make sure the template directory is located in the app directory or if it is in a different directory, ensure the location is specified at the template section in the settings.py file On Mon, Oct 10, 2022 at 3:11 PM Namanya Daniel wrote: > hello, someone help me out. am new to django an

error extending base template

2022-10-10 Thread Namanya Daniel
hello, someone help me out. am new to django and i face an issue with templates extending base.html i have created a base.html template which is basically a skeleton for other templates, they are all in templates/another directory but when i use {%extends 'base.html'%} I get

Re: Use include template tag in another app template folder

2022-09-02 Thread Wazed Khan
My Bad On Fri, Sep 2, 2022, 4:23 PM Wazed Khan wrote: > You can set custom template folder in you project directory > > From there you can use any template for any app > > Change template path from setting > You can look into documentation. > > On Fri, Sep 2, 2022, 4:

Re: Use include template tag in another app template folder

2022-09-02 Thread Wazed Khan
You can set custom template folder in you project directory >From there you can use any template for any app Change template path from setting You can look into documentation. On Fri, Sep 2, 2022, 4:09 PM Abdul Qoyyuum Haji Abdul Kadir < abdul.qoyy...@gmail.com> wrote: >

Re: Use include template tag in another app template folder

2022-09-02 Thread Abdul Qoyyuum Haji Abdul Kadir
It would be problematic. Just copy and paste the template file from one app into the other. Abdul Qoyyuum Bin Haji Abdul Kadir about.me/qoyyuum On Fri, Sep 2, 2022, 5:22 PM mohamed khaled wrote: > I have two apps each one has template folder I want to use *include *template > tag

Use include template tag in another app template folder

2022-09-02 Thread mohamed khaled
I have two apps each one has template folder I want to use *include *template tag to get template from other app how can I handle that -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: django-admin startproject --template error

2022-08-08 Thread 'Kasper Laudrup' via Django users
On 08/08/2022 10.46, xu brandy wrote: WechatIMG75.png An error was reported using the GITLab repository to specify template creation projects And you expect everyone to be able to guess which Gitlab repository you're talking about? You even made an effort trying to hide it. But wha

Re: variable inside a template

2022-06-16 Thread Antonis Christofides
=  ['1,png','2.png',3.jpj'] in the template i do as follow: {% for o in mylist %}                 {% if "png" in o %}         {{ o }}         %}" class="">         {% else %}             {{o}}                 {% endif %}         {% endfor %} in the

Re: variable inside a template

2022-06-16 Thread Larry Martell
On Thu, Jun 16, 2022 at 4:09 AM luca72.b...@gmail.com wrote: > > Hello i have a list like: > mylist = ['1,png','2.png',3.jpj'] > in the template i do as follow: > {% for o in mylist %} > > {% if "png" in o %} >

Re: variable inside a template

2022-06-16 Thread Sencer Hamarat
Don use 'o' as a template variable in the template function Use {% static 'poll/'|add:o %} instead. 16 Haz 2022 Per 14:09 tarihinde luca72.b...@gmail.com < luca72.bertolo...@gmail.com> şunu yazdı: > Hello i have a list like: > mylist = ['1,png','

variable inside a template

2022-06-16 Thread luca72.b...@gmail.com
Hello i have a list like: mylist = ['1,png','2.png',3.jpj'] in the template i do as follow: {% for o in mylist %} {% if "png" in o %} {{ o }} {% else %} {{o}} {% endif %} {% endfo

Re: Deploy Tailwind Template with Django

2022-06-01 Thread Ryan Nowakowski
Drop the HTML into your templates directory. Then put all the static assets ( CSS, js ) in your static directory. Change all the references to the static assets in your HTML to the new location and your static directory by using the staticfiles template tag. On May 31, 2022 6:52:12 PM CDT, Ry

Re: Deploy Tailwind Template with Django

2022-06-01 Thread Mukul Verma
you can create API in Django and integrate in the Template On Wednesday, 1 June 2022 at 05:22:12 UTC+5:30 Ry wrote: > Hi I recently downloaded a template from cruip.com > > https://preview.cruip.com/mosaic/ > > I'd like to integrate this template into my django site but ad

Deploy Tailwind Template with Django

2022-05-31 Thread Ry
Hi I recently downloaded a template from cruip.com https://preview.cruip.com/mosaic/ I'd like to integrate this template into my django site but admittedly I am not sure where to begin. Does anyone have experience using templates such as the dashboard above on django? In the end, I'

Re: Auto Template Update

2022-05-31 Thread Ryan Nowakowski
There's a couple of ways to update the UI without the user doing anything. First, you can poll the server at a regular interval using JavaScript. Second, you can use a websocket to push updates from the server to the client. On May 30, 2022 6:28:40 AM CDT, Dev femibadmus wrote: >fine! we can su

Auto Template Update

2022-05-30 Thread Dev femibadmus
fine! we can submit form with ajax, and update little tag b cant update all. *Instagram* auto update likes, new post, message or even notification without any event, even if a event itself action how possible to update differents post likes, notification blah blah blah blah blah..*How???* -

Re: Error during template rendering

2022-04-11 Thread emmanuel odor
M "curriculu... ^ > Exception Location: > /app/.heroku/python/lib/python3.9/site-packages/django/db/backends/utils.py, > line 84, in _execute > Python Executable: > /app/.heroku/python/bin/python > Python Version: > 3.9.11 > Python Path: > ['/app/.heroku/python/bin&#

Re: Error during template rendering

2022-04-10 Thread Antonis Christofides
;, '/app/.heroku/python/lib/python39.zip', '/app/.heroku/python/lib/python3.9', '/app/.heroku/python/lib/python3.9/lib-dynload', '/app/.heroku/python/lib/python3.9/site-packages'] Server time: Sat, 09 Apr 2022 18:32:20 + Error during template rendering In

Error during template rendering

2022-04-09 Thread emmanuel odor
#x27;, '/app/.heroku/python/lib/python39.zip', '/app/.heroku/python/lib/python3.9', '/app/.heroku/python/lib/python3.9/lib-dynload', '/app/.heroku/python/lib/python3.9/site-packages'] Server time: Sat, 09 Apr 2022 18:32:20 + Error during template rende

Re: How do detect if template is being viewed on mobile device?

2022-03-21 Thread Kayode Oladipo
:11:10 AM UTC+1 Antonis Christofides wrote: > >> Inside of a Django function or template we need to know if to display >> a landscape or portrait of a form - based on knowing if the viewer is >> using a mobile or not. >> >> Your requirement to know whether you

Re: How do detect if template is being viewed on mobile device?

2022-03-20 Thread Django2021
Thanks for your answers. Rephrasing question in another thread. On Thursday, March 17, 2022 at 8:11:10 AM UTC+1 Antonis Christofides wrote: > Inside of a Django function or template we need to know if to display > a landscape or portrait of a form - based on knowing if the viewer is >

Re: How do detect if template is being viewed on mobile device?

2022-03-20 Thread Django2021
> This problem has nothing to with Python and Django, it's merely a HTML+CSS issue. While I realize the roots of this issue are in HTML+CSS for me and likely many others it is a Django template issue. I've experimented with Bootstrap, Javascript, HTML and CSS 'solutions&

Re: How do detect if template is being viewed on mobile device?

2022-03-17 Thread Antonis Christofides
Inside of a Django function or template we need to know if to display a landscape or portrait of a form - based on knowing if the viewer is using a mobile or not. Your requirement to know whether you are using "landscape or portrait" is unusual. Normally we are only interested in k

Re: How do detect if template is being viewed on mobile device?

2022-03-16 Thread Django2021
detect > > * if template is being viewed on mobile device? > > and/or > > * if template is being viewed in portrait or landscape mode? > > > > Any suggestions appreciated. > > > > https://www.w3.org/TR/css3-mediaqueries/ > > Kind regards, > > Kasper L

Re: How do detect if template is being viewed on mobile device?

2022-03-16 Thread Django2021
> There are many ways to approach this problem, so it would be best to explain what you are trying to achieve. Inside of a Django function or template we need to know if to display a landscape or portrait of a form - based on knowing if the viewer is using a mobile or not. On Wednesday, Ma

Re: How do detect if template is being viewed on mobile device?

2022-03-16 Thread Kasper Laudrup
On 16/03/2022 21.28, Django2021 wrote: With Django how is it possible to detect * if template is being viewed on mobile device? and/or * if template is being viewed in portrait or landscape mode? Any suggestions appreciated. https://www.w3.org/TR/css3-mediaqueries/ Kind regards, Kasper

Re: How do detect if template is being viewed on mobile device?

2022-03-16 Thread Antonis Christofides
Hello, there are many ways to approach this problem, so it would be best to explain what you are trying to achieve. Regards, Antonis Antonis Christofides +30-6979924665 (mobile) On 16/03/2022 22.28, Django2021 wrote: With Django how is it possible to detect * if template is being viewed

How do detect if template is being viewed on mobile device?

2022-03-16 Thread Django2021
With Django how is it possible to detect * if template is being viewed on mobile device? and/or * if template is being viewed in portrait or landscape mode? Any suggestions appreciated. -- You received this message because you are subscribed to the Google Groups "Django users"

how to filter by month from template

2022-02-22 Thread Gautam Ankul
HERE STACKOVER FLOW LINK OF QUESTIONS :https://stackoverflow.com/questions/71232795/how-to-filter-by-month-from-template - I'm attempting to chan

django template engine and bootstrap modals

2022-02-10 Thread Andrea Villani
Hi everyone! I am developing an appweb and I'm stuck. My homepage is structured as a ListView, where each row shows every object's attributes using django template engine (ex: {{object.attribute}}. Last column shows a button to do an action through a bootstrap modal and if I pu

Django cache template

2022-02-02 Thread Dev femibadmus
How do I not allow Django to cache template, data doesn't change until several refresh have used @never_cache and cache_control doing everything well but still not working On Tue, Feb 1, 2022, 08:59 Mariusz Felisiak wrote: > Details are available on the Django project weblog: &

Re: render two template at one time in django

2021-12-11 Thread Harouna Diallo
Hello Kumar, you mean conditional rendering? On Sat, Dec 11, 2021 at 3:25 PM VIVEK KUMAR wrote: > Respected All, > > I want to ask you at one time we render two template in one view. > when you say yes then how ?? > And Share please link also. > > Thankyou > Vive

Re: render two template at one time in django

2021-12-11 Thread Sebastian Jung
Hello, I think you csn use render_to_string. Then you cah use it to 2 different Templates and can concat both strings abd return string with httpresponse. Why do you don't include second template in First template? This is much easier... Regards VIVEK KUMAR schrieb am Sa., 11. Dez. 202

render two template at one time in django

2021-12-11 Thread VIVEK KUMAR
Respected All, I want to ask you at one time we render two template in one view. when you say yes then how ?? And Share please link also. Thankyou Vivek Mobile No. 981169732 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: Pagination on different cards reside on the same template

2021-11-25 Thread Eugene TUYIZERE
Dear David, Thanks, after some hours of search,I managed to achieve it with python only. > On 25 Nov 2021, at 23:26, David Nugent wrote: > > Hi Eurgene, > > I would implement this in Javascript (or htmx). Some good examples are only a > google search away. > > Regards, David > >> On Fri,

Re: Pagination on different cards reside on the same template

2021-11-25 Thread David Nugent
Hi Eurgene, I would implement this in Javascript (or htmx). Some good examples are only a google search away. Regards, David On Fri, Nov 26, 2021 at 6:41 AM Eugene TUYIZERE wrote: > Dear Team, > > I have 4 cards on a single html page. I want to display data on each one > but since the data has

Pagination on different cards reside on the same template

2021-11-25 Thread Eugene TUYIZERE
Dear Team, I have 4 cards on a single html page. I want to display data on each one but since the data has many rows I want to apply pagination on each card. How can I achieve this? I was thinking of using ListView but this displays pagination on the whole page. I did not try any other codes becau

  1   2   3   4   5   6   7   8   9   10   >