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.
Help me.
{% endblock %}



-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com.


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
> file
> Here is an example :
>
> // file.html :
>
> {% extends "index.html" %}
>
> {% block content %}
> Hello, this is a test.
> Help me.
> {% endblock %}
>
> //index.html:
> 
> 
> 
> 
> 
> Document
> 
> 
> {% block content %}
>
> {% endblock %}
> 
> 
>
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> On Mon, 31 Oct 2022, 8:09 PM Alec Delaney, <96alecpatr...@gmail.com>
> wrote:
>
>> 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.
>> Help me.
>> {% endblock %}
>> 
>> 
>>
>> --
>> 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-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHs1H7sS6tndz4j8wiK_Dfpwqnb7sUcrc814Zp3eTndDJ%2B5Ewg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHs1H7sS6tndz4j8wiK_Dfpwqnb7sUcrc814Zp3eTndDJ%2B5Ewg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFGN%3DGjzRUmsi3Ugh_Xmcrnu%2BBkAVWKcuHpt3-C4Qvn6u1QRrA%40mail.gmail.com.


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 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.
> Help me.
> {% endblock %}
>
> //index.html:
> 
> 
> 
> 
> 
> Document
> 
> 
> {% block content %}
>
> {% endblock %}
> 
> 
>
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> On Mon, 31 Oct 2022, 8:09 PM Alec Delaney, <96alecpatr...@gmail.com>
> wrote:
>
>> 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.
>> Help me.
>> {% endblock %}
>> 
>> 
>>
>> --
>> 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-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHs1H7sS6tndz4j8wiK_Dfpwqnb7sUcrc814Zp3eTndDJ%2B5Ewg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHs1H7sS6tndz4j8wiK_Dfpwqnb7sUcrc814Zp3eTndDJ%2B5Ewg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFGN%3DGitQmZVFG_v1kKOk5s5r53NYCYKEGFZ1Pdi%2Bm%2BiMAFRig%40mail.gmail.com.


Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
Hello, would you be available for zoom?


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 your
> templates 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 other
> templates references too if need be.
> Thanks.
> Best Regards.
>
> On Fri, Nov 18, 2022, 22:01 David Emanuel Sandoval <
> davidemanuelsando...@gmail.com> wrote:
>
>> 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 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 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.
>>>> Help me.
>>>> {% endblock %}
>>>>
>>>> //index.html:
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Document
>>>> 
>>>> 
>>>> {% block content %}
>>>>
>>>> {% endblock %}
>>>> 
>>>> 
>>>>
>>>>
>>>> --
>>>> 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-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>>
>>>> On Mon, 31 Oct 2022, 8:09 PM Alec Delaney, <96alecpatr...@gmail.com>
>>>> wrote:
>>>>
>>>>> 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.
>>>>> Help me.
>>>>> {% endblock %}
>>>>> 
>>>>> 
>>>>>
>>>>> --
>>>>> 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-users+unsubscr...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_sour

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?
>>
>>
>> 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 your
>>> templates 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 other
>>> templates references too if need be.
>>> Thanks.
>>> Best Regards.
>>>
>>> On Fri, Nov 18, 2022, 22:01 David Emanuel Sandoval <
>>> davidemanuelsando...@gmail.com> wrote:
>>>
>>>> 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 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 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.
>>>>>> Help me.
>>>>>> {% endblock %}
>>>>>>
>>>>>> //index.html:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>     Document
>>>>>> 
>>>>>> 
>>>>>> {% block content %}
>>>>>>
>>>>>> {% endblock %}
>>>>>> 
>>>>>> 
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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-users+unsubscr...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>>
>>>>>> On Mon, 31 Oct 2022, 8:09 PM Alec Delaney, <96alecpatr...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> 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:
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>

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
>>
>> On Sat, Nov 19, 2022, 17:14 Alec Delaney <96alecpatr...@gmail.com> wrote:
>>
>>> Hello, would you be available for zoom?
>>>
>>>
>>> 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 your
>>>> templates 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 other
>>>> templates references too if need be.
>>>> Thanks.
>>>> Best Regards.
>>>>
>>>> On Fri, Nov 18, 2022, 22:01 David Emanuel Sandoval <
>>>> davidemanuelsando...@gmail.com> wrote:
>>>>
>>>>> 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 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 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.
>>>>>>> Help me.
>>>>>>> {% endblock %}
>>>>>>>
>>>>>>> //index.html:
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Document
>>>>>>> 
>>>>>>> 
>>>>>>> {% block content %}
>>>>>>>
>>>>>>> {% endblock %}
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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-users+unsubscr...@googlegroups.com.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/django-users/CAFGN%3DGjpkAW6NBXLZ%3DYL7eXy3FXmJ6DqWfNMh%2BikMrp7om361Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>>>
>>>>>>> On Mon, 31 Oct 2022, 8:09 PM Alec Delaney, <96alecpatr...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I have been trying to get my templates to work but they have been
>>>>>>>> ineffective. here is my code:
>>>>>>>> {% extends "index.html" %}
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> Document
>&

Re: Is programming in Django intellectually satisfactory

2023-04-26 Thread Alec Delaney
I love it

On Wed, Apr 26, 2023, 11:08 PM Mike Dewhirst  wrote:

> On 26/04/2023 10:18 am, Julius Chesoni wrote:
>
>  Hi guys, I find programming in the abstract very interesting and full of
> intellectual benefits similar to those acquired from Mathematics. However,
> when it comes to programming languages I find the practice of programming
> very tiresome since there are very many functions in the documentations. I
> am not able to enjoy reading the documentations even though I am eager to
> know how to master the particular language. How do you guys manage to be
> masters in languages like Django since I see some great people contributing
> to every question. This amazes me.
>
>
> Django could be thought of as a language. In fact it is a "framework" - a
> jargon word which probably needs decoding but I don't have time.
>
> Django is written in Python. Python started as a teaching language for
> primary school kids but it has sufficient sophistication for masters of
> Python to build almost anything.
>
> The two main benefits of Python are:
>
>  * ease of learning for beginners and
>  *  powerful enough for complex projects to be built faster than most
> other languages.
>
> Python was chosen by Django's original authors for a web project and they
> built libraries of useful routines which they eventually open-sourced as
> Django to make website development much more satisfying for other
> developers.
>
> The intellectual satisfaction - and therefore main attraction of Django -
> comes from being able to do anything. There are plenty of guidelines and
> "best practices" but absolutely no frustrating restrictions. If you find a
> web problem you want to solve, I would be very surprised if it couldn't be
> solved with Django.
>
> Many would argue front-end problems cannot be solved with a back-end
> server architecture like Django but nowadays, with htmx, that argument is
> lost.
>
> So, to answer your question in the abstract, Django is used as the
> interface "language" between a database and the user with a web browser. It
> contains an "Object Relational Mapper" (ORM). The mathematics of relational
> database management systems (RDBMS) should pique your interest. The
> language of RDBMS is Structured Query Language (SQL) but because Django has
> its ORM you no longer need to learn SQL. The Django library of queries
> comes to the rescue.
>
> Django, HTML+htmx and CSS therefore is all you really need to build a
> completely fuctional and intellectually satisfying website.
>
> My advice to you is to find a small project you really want to do and get
> started one step at a time.
>
> Someone else said practice practice practice. That is completely correct.
> You need to start somewhere if you are really interested.
>
> With practice you can tackle ever more interesting projects.
>
> Good luck.
>
>
> Kind regards
> Julius
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANOu6a8axU1sL6GXveq7CufyTm1JWX-6aZ7FU4fJVqLq9M0GAQ%40mail.gmail.com
> 
> .
>
>
>
> --
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Your
> email software can handle signing.
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/17f6b06b-546f-069b-4487-d740b5bd7267%40dewhirst.com.au
> 
> .
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFGN%3DGhuquB47d%3DgJUPUh%2BZAk5mPBCuXUz_FLBQ89AvW0O9-iw%40mail.gmail.com.


Re: CSV file

2023-06-10 Thread Alec Delaney
For server

On Thu, Jun 8, 2023, 15:03 Percy Masekwameng 
wrote:

> Hi
>
> I have web app survey that collect data and generate a CSV file,
> I'm using railway to deploy my web app, running on 8GB RAM and each time I
> generate a file, the server goes down and display "Application failed to
> respond" the database table has over 2k records
> Is there any way to improve the performance so that I can be able to
> download large dataset from the web app?
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANfc-pBoutR0kD%3DcqwRHGSQ8gac%2B_YLMyCQoFK--%3DD54TZpotA%40mail.gmail.com
> 
> .
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFGN%3DGiUQMhWC42LnWbCTuXv5TROrDNjU%2BQLGKU2C_4aQVoLjw%40mail.gmail.com.


Re: uwsgi

2023-06-18 Thread Alec Delaney
Yes

On Mon, Jun 19, 2023, 2:26 AM Nakamatte Norah 
wrote:

> good morning my name is Norah . This is first time to use Django and
> develope a system l need help can you . Please help to accomplish this task
>
> On Sun, Jun 4, 2023, 11:14 PM Larry Martell 
> wrote:
>
>> I normally deploy my django apps using nginx and uwsgi. I recently
>> found that the uwsgi mailing list is defunct, and I read this on the
>> uwsgi github page:
>>
>> Note: The project is in maintenance mode (only bugfixes and updates
>> for new languages apis). Do not expect quick answers on github issues.
>>
>> Are folks still deploying new apps with uwsgi, or have people switched
>> to Gunicorn or something else?
>>
>> --
>> 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-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CACwCsY4h8Jc4_Cd7Vf2w-8ExjfUnu0W2i-GknCuxOznk6V_V3A%40mail.gmail.com
>> .
>>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMEfT%2BQD8h8LOo27vb%2BSQYh-OuT-X3LgTvgD5Ff3VT2BfnEeNw%40mail.gmail.com
> 
> .
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFGN%3DGjg3OKNK_51Tewc5vWc%2Bzec7Gfz2L7NPSJfTzwKUtsX9g%40mail.gmail.com.


Re: Django Channels with Queue (Lobby) Manager

2023-07-11 Thread Alec Delaney
Nicee

On Tue, Jul 11, 2023, 11:56 AM Alex R  wrote:

> Hello dear Community!
>
> I need help with Django channels and Websockets (i guess) for an
> application I am building. The project is online Chess game with Django as
> a backend and vanilla JavaScript (ajax, jQuey and some bootstrap). We are
> using custom chess engine written in python.
>
> Previously we succesfully built flask application with single view to play
> chess game hand-to-hand. I wanted to improve our backend and introduce game
> lobbies - general online. This would also be a great practice and learning.
> Or so I thought.
> I have gone through the Django Channels docs and followed simple tutorial
> to create a chat application - more or less the concept is understood.
>
> My goal is to create a lobby like system as in other online games:
>
>- User has to be autorized and only authorized users can do anything
>- You can click on "New game" - it will put you in waiting or lobby
>room. If you match with another user who has right conditions (for now:
>oppotise pieces color) - you two are put in a game and game starts
>- If there are no games available after some timeout - it will through
>you out to main screen and ask to "Try later"
>
> I have some ideas and questions, but I would like to hear how this idea
> can be coded and what would be the right plan for realisation first. Maybe
> my questions and ideas are completely irrelevant.
>
> P.S.: We are using custom written chess engine in Python via OOP. It
> worked very poorly in Flask by just creating Game object from a class in
> View function. This you should not do... What would be the best practice to
> actually access it and when we should create it? I have seen examples with
> TicTacToe game and logic stored as a model, but i think it would be very
> heavy on database
>
> Looking forward for replies :)
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ca46cb38-d3a7-4d24-b5f2-b7fda612f445n%40googlegroups.com
> 
> .
>

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFGN%3DGhNrCdxmiQqLhtOPZHsMOovntxsunuriUDezhtHRbOfxQ%40mail.gmail.com.