Re: Help with Python Django Chat

2024-08-02 Thread Tarantula “Menace”
how can one run this code?

On Monday 29 July 2024 at 21:48:36 UTC+2 joey buonocore wrote:

> Hello everyone! I'm currently developing an app which users can chat with 
> eachother on, currently it has a delete feature where you can delete 
> comments you've created, and currently I need to add a button which can 
> send files over, and a button which can edit chats which were made. If 
> anyone wants to take a shot at adding these, here is the html file: 
>
> 
> 
> 
> 
> 
> Chat
> 
> body {
> font-family: 'Arial', sans-serif;
> background-color: #e8eff1;
> margin: 0;
> padding: 0;
> color: #333;
> }
> .header {
> color: #022c22;
> font-size: 14px;
> text-align: center;
> }
> .container {
> max-width: 60%;
> margin: auto;
> }
> .messages {
> background: #ff;
> border-radius: 8px;
> padding: 20px;
> margin-bottom: 30px;
> box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
> font-size: 16px;
> height: 50vh;
> overflow-y: scroll;
> }
> .message {
> border-bottom: 1px solid #ced6e0;
> padding: 15px 0;
> }
> .message:last-child {
> border-bottom: none;
> }
> form {
> display: flex;
> flex-direction: column;
> }
> textarea, input, button {
> margin-bottom: 15px;
> padding: 15px;
> border: 1px solid #ced6e0;
> border-radius: 6px;
> font-size: 16px;
> }
> .button {
> background-color: #2ecc71;
> color: white;
> border: none;
> cursor: pointer;
> transition: background-color 0.3s;
> }
> .button:hover {
> background-color: #27ae60;
> }
> .message-box {
> background: rgba(247, 248, 245, 0.42);
> border-left: 4px solid rgba(51, 177, 104, 0.42);
> margin-bottom: 15px;
> padding: 10px 15px;
> border-radius: 6px;
> box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
> position: relative;
> }
> .message-author {
> font-weight: bold;
> margin-bottom: 5px;
> }
> .message-content {
> font-size: 16px;
> line-height: 1.4;
> display: flex;
> justify-content: space-between;
> align-items: center;
> }
> .message-time {
> font-size: 12px;
> color: #888;
> }
> textarea {
> background: #f8f9fa;
> border: 1px solid #ced4da;
> box-sizing: border-box;
> width: 100%;
> padding: 12px 20px;
> border-radius: 6px;
> min-height: 100px;
> font-size: 16px;
> line-height: 1.5;
> resize: none;
> outline: none;
> }
> .delete-button {
> background-color: #FF9AA2;
> color: white;
> border: none;
> cursor: pointer;
> transition: background-color 0.3s;
> padding: 5px 10px;
> font-size: 14px;
> border-radius: 4px;
> position: absolute;
> right: 10px;
> top: 10px;
> }
> .delete-button:hover {
> background-color: #FF6F61;
> }
> 
> 
> [x-cloak] {
> display: none !important;
> }
> 
> 
> 
> 
> Welcome {{ request.session.username }}
> 
>
> 
> 
> 
> {% regroup messages by created_at.date as dated_messages %}
> {% for date_group in dated_messages %}
> {% for message in date_group.list %}
> 
> {{ message.author.name }}
> 
> 
> {{ message.content }}
> {{ 
> message.created_at|date:"Y-m-d H:i" }}
> 
>  method="post" style="display:inline;">
> {% csrf_token %}
> Delete
> 
> 
> 
> {% endfor %}
> {% endfor %}
> 
> 
>
> 
> 
>  autofocus placeholder="Your next message...">
> Send
> 
> 
> Error sending your message ❌
> 
> 
> 
> 
>  autofocus placeholder="Your next message...">
> 
> Upload
> Send
> 
> 
> Error sending your message ❌
> 
> 
> 
> Return to Lobby
> 
> 
>
> 
> let eventSource;
>   

Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-27 Thread Krishnakant Mane

Talking about Ninja.

I am actually trying to figure out how I can distribute my crud APIs in 
seperate python modules (one per model ) and make a package in my app.


Then How all the routs can be imported in the project urls.py at once.

Any suggestions?

Regards.

On 7/14/24 21:35, Sam Brown wrote:
Im sure there are performance metrics out there to prove the ORM will 
not be the bottleneck. But I’ve never seen it slow things down when 
I’ve employed a timer on operation


Also, ive recently ran into some of the limitations of drf and am 
looking into moving to an api that can be less coupled with orm. 
Django-ninja looks promising.


On Sat, Jul 13, 2024 at 9:15 PM Krishnakant Mane  
wrote:


Hello.

I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.

But I am new to the one with Django.So here's my situation.

I am developing an accounting (book keeping ) automation software
service.

So there are accounting rules (Debit = Dr and credit = Cr) for double
entry book keeping.

Every transaction will have 2 or more amounts, at least 1 each for
dr or
Cr.

These entries are called vouchers.

We also store retail bills, receipts and payments again all in
different
tables.

But the bills and receipt tables are connected to the voucher
table.

The software generates reports such as cash flow, meaning day's
opening
balance, total Drs, total crs, and final closing balance (DRs - Crs).

then there are Profit and Loss as well as balance sheet reports.

All this needs a lot of aggregations (sum and counts ) and also
joining
of invoice + voucher and recept + voucher tables.

so here are my questions.

1: given the fact that I have created materialised views in
Postgresql,
should I even care to model them and use the ORM syntax instead of
raw
query?  What would perform better?

2: datasets are going to be huge some times in terms of shear rows
(all
transactions aka vouchers ) or some times sum and count will be
used in
complex queries on a huge dataset.

Again, should I rely on raw queries or will ORM plan the queries
for me
better?  Should I instead create stored procedures and call them
from my
REST API?

talking of which,

3: I am using Django REST Framework and serialising records is an
option
to get json output.

Should I use it or just go with raw queries and convert output to
JSON
as required?

Again performance is a question.

Tip, My team is very proficient in SQL and yours truely can modestly
call himself an expert in the same, so maintenance is not an issue
here.

Regards.

Krishnakant.

-- 
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/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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/CALmEK1sEN%2BLjwcrT-7eYbQkrdkU2bynGehBo4BjvkW1NEBVUjQ%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/8db1044f-c443-48ef-85d5-62d668f2420a%40gmail.com.


Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread ReynardSec
Hello,

On Sunday 14 July 2024 at 09:03:38 UTC+2 eric paul wrote:

In whatever way possible use the Django ORM for security purposes and also 
efficiency .

Offtopic: There are certain issues worth keeping in mind, even if you are 
using an ORM: https://www.elttam.com/blog/plormbing-your-django-orm/

Cheers,
ReynardSec
https://reynardsec.com/ 

On Sunday 14 July 2024 at 09:03:38 UTC+2 eric paul wrote:

In whatever way possible use the Django ORM for security purposes and also 
efficiency . I won't recommend to use Raw queries if you don't know what 
you are doing 

On Sun, Jul 14, 2024, 7:34 AM Enock Deghost  wrote:



On Sun, 14 Jul 2024, 6:15 am Krishnakant Mane,  wrote:

Hello.

I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.

But I am new to the one with Django.So here's my situation.

I am developing an accounting (book keeping ) automation software service.

So there are accounting rules (Debit = Dr and credit = Cr) for double 
entry book keeping.

Every transaction will have 2 or more amounts, at least 1 each for dr or 
Cr.

These entries are called vouchers.

We also store retail bills, receipts and payments again all in different 
tables.

But the bills and receipt tables are connected to the voucher 
table.

The software generates reports such as cash flow, meaning day's opening 
balance, total Drs, total crs, and final closing balance (DRs - Crs).

then there are Profit and Loss as well as balance sheet reports.

All this needs a lot of aggregations (sum and counts ) and also joining 
of invoice + voucher and recept + voucher tables.

so here are my questions.

1: given the fact that I have created materialised views in Postgresql, 
should I even care to model them and use the ORM syntax instead of raw 
query?  What would perform better?

2: datasets are going to be huge some times in terms of shear rows (all 
transactions aka vouchers ) or some times sum and count will be used in 
complex queries on a huge dataset.

Again, should I rely on raw queries or will ORM plan the queries for me 
better?  Should I instead create stored procedures and call them from my 
REST API?

talking of which,

3: I am using Django REST Framework and serialising records is an option 
to get json output.

Should I use it or just go with raw queries and convert output to JSON 
as required?

Again performance is a question.

Tip, My team is very proficient in SQL and yours truely can modestly 
call himself an expert in the same, so maintenance is not an issue here.

Regards.

Krishnakant.

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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...@googlegroups.com.

To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA2jrmJ0TtbxmfXeSCq5S9p8XsrPjJBf6_gKMRY_MSuTagFt4Q%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/019f7cda-12b8-4766-b8cb-6a6ed795b70cn%40googlegroups.com.


Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread eric paul
According to your scenario an accounting system is a more complex system
that requires high performance. It can be written in any language but as
the system grows some programming languages will experience performance
issues python being one of them take a case like Dropbox which was
originally written in python but because of python speeds and data handling
limitations it led the team to introduce other languages (Go, Rust) . Since
you've decided to go with Django then it's best you use raw queries and
concurrency etc inorder to achieve high performance.It also comes down to
your hardware and code practices . Take a look at the Django ledger repo an
accounting system. About the API you can explore Graphql.

On Sun, Jul 14, 2024, 8:48 PM Krishnakant Mane  wrote:

> Hi Eric.
>
> Can you explain a bit more on the "performance " aspect you refered to?
>
> I have already mentioned my scenario and given the case study which I am
> working on.
>
> In that reference, how using the ORM will benefit more than raw queries
> working with materialised views?
>
> Regarding security, I (and the team working on this ) are totally aware of
> the pitfalls and the way around them so that's out of the way.
>
> Regards.
>
>
> On 7/14/24 12:32, eric paul wrote:
>
> In whatever way possible use the Django ORM for security purposes and also
> efficiency . I won't recommend to use Raw queries if you don't know what
> you are doing
>
> On Sun, Jul 14, 2024, 7:34 AM Enock Deghost 
> wrote:
>
>> 
>>
>> On Sun, 14 Jul 2024, 6:15 am Krishnakant Mane, 
>> wrote:
>>
>>> Hello.
>>>
>>> I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.
>>>
>>> But I am new to the one with Django.So here's my situation.
>>>
>>> I am developing an accounting (book keeping ) automation software
>>> service.
>>>
>>> So there are accounting rules (Debit = Dr and credit = Cr) for double
>>> entry book keeping.
>>>
>>> Every transaction will have 2 or more amounts, at least 1 each for dr or
>>> Cr.
>>>
>>> These entries are called vouchers.
>>>
>>> We also store retail bills, receipts and payments again all in different
>>> tables.
>>>
>>> But the bills and receipt tables are connected to the voucher
>>> table.
>>>
>>> The software generates reports such as cash flow, meaning day's opening
>>> balance, total Drs, total crs, and final closing balance (DRs - Crs).
>>>
>>> then there are Profit and Loss as well as balance sheet reports.
>>>
>>> All this needs a lot of aggregations (sum and counts ) and also joining
>>> of invoice + voucher and recept + voucher tables.
>>>
>>> so here are my questions.
>>>
>>> 1: given the fact that I have created materialised views in Postgresql,
>>> should I even care to model them and use the ORM syntax instead of raw
>>> query?  What would perform better?
>>>
>>> 2: datasets are going to be huge some times in terms of shear rows (all
>>> transactions aka vouchers ) or some times sum and count will be used in
>>> complex queries on a huge dataset.
>>>
>>> Again, should I rely on raw queries or will ORM plan the queries for me
>>> better?  Should I instead create stored procedures and call them from my
>>> REST API?
>>>
>>> talking of which,
>>>
>>> 3: I am using Django REST Framework and serialising records is an option
>>> to get json output.
>>>
>>> Should I use it or just go with raw queries and convert output to JSON
>>> as required?
>>>
>>> Again performance is a question.
>>>
>>> Tip, My team is very proficient in SQL and yours truely can modestly
>>> call himself an expert in the same, so maintenance is not an issue here.
>>>
>>> Regards.
>>>
>>> Krishnakant.
>>>
>>> --
>>> 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/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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/CAA2jrmJ0TtbxmfXeSCq5S9p8XsrPjJBf6_gKMRY_MSuTagFt4Q%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
> 

Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread Singhal._.paras
Bro ,
Just go for it !

On Sun, 14 Jul, 2024, 22:58 Krishnakant Mane,  wrote:

> I am looking into ninja too.
>
> I guess I may be able to use SQLAlchemy seamlessly with it.
>
> Regards.
> On 7/14/24 21:35, Sam Brown wrote:
>
> Im sure there are performance metrics out there to prove the ORM will not
> be the bottleneck. But I’ve never seen it slow things down when I’ve
> employed a timer on operation
>
> Also, ive recently ran into some of the limitations of drf and am looking
> into moving to an api that can be less coupled with orm. Django-ninja looks
> promising.
>
> On Sat, Jul 13, 2024 at 9:15 PM Krishnakant Mane 
> wrote:
>
>> Hello.
>>
>> I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.
>>
>> But I am new to the one with Django.So here's my situation.
>>
>> I am developing an accounting (book keeping ) automation software service.
>>
>> So there are accounting rules (Debit = Dr and credit = Cr) for double
>> entry book keeping.
>>
>> Every transaction will have 2 or more amounts, at least 1 each for dr or
>> Cr.
>>
>> These entries are called vouchers.
>>
>> We also store retail bills, receipts and payments again all in different
>> tables.
>>
>> But the bills and receipt tables are connected to the voucher
>> table.
>>
>> The software generates reports such as cash flow, meaning day's opening
>> balance, total Drs, total crs, and final closing balance (DRs - Crs).
>>
>> then there are Profit and Loss as well as balance sheet reports.
>>
>> All this needs a lot of aggregations (sum and counts ) and also joining
>> of invoice + voucher and recept + voucher tables.
>>
>> so here are my questions.
>>
>> 1: given the fact that I have created materialised views in Postgresql,
>> should I even care to model them and use the ORM syntax instead of raw
>> query?  What would perform better?
>>
>> 2: datasets are going to be huge some times in terms of shear rows (all
>> transactions aka vouchers ) or some times sum and count will be used in
>> complex queries on a huge dataset.
>>
>> Again, should I rely on raw queries or will ORM plan the queries for me
>> better?  Should I instead create stored procedures and call them from my
>> REST API?
>>
>> talking of which,
>>
>> 3: I am using Django REST Framework and serialising records is an option
>> to get json output.
>>
>> Should I use it or just go with raw queries and convert output to JSON
>> as required?
>>
>> Again performance is a question.
>>
>> Tip, My team is very proficient in SQL and yours truely can modestly
>> call himself an expert in the same, so maintenance is not an issue here.
>>
>> Regards.
>>
>> Krishnakant.
>>
>> --
>> 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/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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/CALmEK1sEN%2BLjwcrT-7eYbQkrdkU2bynGehBo4BjvkW1NEBVUjQ%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/f1a8a082-61c9-449c-9361-d1c8d77c0b07%40gmail.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/CADg%2BKQth%3DNd593qVO09L%2Bh6GPobPswYO-%3DZDkeXkfZAuWxbR5A%40mail.gmail.com.


Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread Krishnakant Mane

I am looking into ninja too.

I guess I may be able to use SQLAlchemy seamlessly with it.

Regards.

On 7/14/24 21:35, Sam Brown wrote:
Im sure there are performance metrics out there to prove the ORM will 
not be the bottleneck. But I’ve never seen it slow things down when 
I’ve employed a timer on operation


Also, ive recently ran into some of the limitations of drf and am 
looking into moving to an api that can be less coupled with orm. 
Django-ninja looks promising.


On Sat, Jul 13, 2024 at 9:15 PM Krishnakant Mane  
wrote:


Hello.

I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.

But I am new to the one with Django.So here's my situation.

I am developing an accounting (book keeping ) automation software
service.

So there are accounting rules (Debit = Dr and credit = Cr) for double
entry book keeping.

Every transaction will have 2 or more amounts, at least 1 each for
dr or
Cr.

These entries are called vouchers.

We also store retail bills, receipts and payments again all in
different
tables.

But the bills and receipt tables are connected to the voucher
table.

The software generates reports such as cash flow, meaning day's
opening
balance, total Drs, total crs, and final closing balance (DRs - Crs).

then there are Profit and Loss as well as balance sheet reports.

All this needs a lot of aggregations (sum and counts ) and also
joining
of invoice + voucher and recept + voucher tables.

so here are my questions.

1: given the fact that I have created materialised views in
Postgresql,
should I even care to model them and use the ORM syntax instead of
raw
query?  What would perform better?

2: datasets are going to be huge some times in terms of shear rows
(all
transactions aka vouchers ) or some times sum and count will be
used in
complex queries on a huge dataset.

Again, should I rely on raw queries or will ORM plan the queries
for me
better?  Should I instead create stored procedures and call them
from my
REST API?

talking of which,

3: I am using Django REST Framework and serialising records is an
option
to get json output.

Should I use it or just go with raw queries and convert output to
JSON
as required?

Again performance is a question.

Tip, My team is very proficient in SQL and yours truely can modestly
call himself an expert in the same, so maintenance is not an issue
here.

Regards.

Krishnakant.

-- 
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/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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/CALmEK1sEN%2BLjwcrT-7eYbQkrdkU2bynGehBo4BjvkW1NEBVUjQ%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/f1a8a082-61c9-449c-9361-d1c8d77c0b07%40gmail.com.


Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread Gulshan Yadav
If you use ORM QUERY THEN IT IS VERY EASY TO SOLVE THIS ONE BY USING
FOREIGN KEY OR MANY TO MANY RELATIONSHIP AND WHEN IF USER NOT RAGISTER THEN
WE NEED TO ADD NON RAGISTER USER UNIQUE KEY FOR IDENTIFICATION AND AMOUNT
WHICH ONE TAKE RECIEVE THE MONEY STORED IDENTIFICATION KEY  IN PAYMENT
TABLE AND CONNECT MORE TABLE

On Sun, 14 Jul, 2024, 10:05 AM Enock Deghost, 
wrote:

> 
>
> On Sun, 14 Jul 2024, 6:15 am Krishnakant Mane, 
> wrote:
>
>> Hello.
>>
>> I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.
>>
>> But I am new to the one with Django.So here's my situation.
>>
>> I am developing an accounting (book keeping ) automation software service.
>>
>> So there are accounting rules (Debit = Dr and credit = Cr) for double
>> entry book keeping.
>>
>> Every transaction will have 2 or more amounts, at least 1 each for dr or
>> Cr.
>>
>> These entries are called vouchers.
>>
>> We also store retail bills, receipts and payments again all in different
>> tables.
>>
>> But the bills and receipt tables are connected to the voucher
>> table.
>>
>> The software generates reports such as cash flow, meaning day's opening
>> balance, total Drs, total crs, and final closing balance (DRs - Crs).
>>
>> then there are Profit and Loss as well as balance sheet reports.
>>
>> All this needs a lot of aggregations (sum and counts ) and also joining
>> of invoice + voucher and recept + voucher tables.
>>
>> so here are my questions.
>>
>> 1: given the fact that I have created materialised views in Postgresql,
>> should I even care to model them and use the ORM syntax instead of raw
>> query?  What would perform better?
>>
>> 2: datasets are going to be huge some times in terms of shear rows (all
>> transactions aka vouchers ) or some times sum and count will be used in
>> complex queries on a huge dataset.
>>
>> Again, should I rely on raw queries or will ORM plan the queries for me
>> better?  Should I instead create stored procedures and call them from my
>> REST API?
>>
>> talking of which,
>>
>> 3: I am using Django REST Framework and serialising records is an option
>> to get json output.
>>
>> Should I use it or just go with raw queries and convert output to JSON
>> as required?
>>
>> Again performance is a question.
>>
>> Tip, My team is very proficient in SQL and yours truely can modestly
>> call himself an expert in the same, so maintenance is not an issue here.
>>
>> Regards.
>>
>> Krishnakant.
>>
>> --
>> 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/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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/CAA2jrmJ0TtbxmfXeSCq5S9p8XsrPjJBf6_gKMRY_MSuTagFt4Q%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/CAFqcJsm2GnNQCXf2t%3DETH0RXX7vBqcijB6OgP6o5CK7ocfXzyA%40mail.gmail.com.


Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread Sam Brown
Im sure there are performance metrics out there to prove the ORM will not
be the bottleneck. But I’ve never seen it slow things down when I’ve
employed a timer on operation

Also, ive recently ran into some of the limitations of drf and am looking
into moving to an api that can be less coupled with orm. Django-ninja looks
promising.

On Sat, Jul 13, 2024 at 9:15 PM Krishnakant Mane 
wrote:

> Hello.
>
> I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.
>
> But I am new to the one with Django.So here's my situation.
>
> I am developing an accounting (book keeping ) automation software service.
>
> So there are accounting rules (Debit = Dr and credit = Cr) for double
> entry book keeping.
>
> Every transaction will have 2 or more amounts, at least 1 each for dr or
> Cr.
>
> These entries are called vouchers.
>
> We also store retail bills, receipts and payments again all in different
> tables.
>
> But the bills and receipt tables are connected to the voucher
> table.
>
> The software generates reports such as cash flow, meaning day's opening
> balance, total Drs, total crs, and final closing balance (DRs - Crs).
>
> then there are Profit and Loss as well as balance sheet reports.
>
> All this needs a lot of aggregations (sum and counts ) and also joining
> of invoice + voucher and recept + voucher tables.
>
> so here are my questions.
>
> 1: given the fact that I have created materialised views in Postgresql,
> should I even care to model them and use the ORM syntax instead of raw
> query?  What would perform better?
>
> 2: datasets are going to be huge some times in terms of shear rows (all
> transactions aka vouchers ) or some times sum and count will be used in
> complex queries on a huge dataset.
>
> Again, should I rely on raw queries or will ORM plan the queries for me
> better?  Should I instead create stored procedures and call them from my
> REST API?
>
> talking of which,
>
> 3: I am using Django REST Framework and serialising records is an option
> to get json output.
>
> Should I use it or just go with raw queries and convert output to JSON
> as required?
>
> Again performance is a question.
>
> Tip, My team is very proficient in SQL and yours truely can modestly
> call himself an expert in the same, so maintenance is not an issue here.
>
> Regards.
>
> Krishnakant.
>
> --
> 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/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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/CALmEK1sEN%2BLjwcrT-7eYbQkrdkU2bynGehBo4BjvkW1NEBVUjQ%40mail.gmail.com.


Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-14 Thread eric paul
In whatever way possible use the Django ORM for security purposes and also
efficiency . I won't recommend to use Raw queries if you don't know what
you are doing

On Sun, Jul 14, 2024, 7:34 AM Enock Deghost  wrote:

> 
>
> On Sun, 14 Jul 2024, 6:15 am Krishnakant Mane, 
> wrote:
>
>> Hello.
>>
>> I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.
>>
>> But I am new to the one with Django.So here's my situation.
>>
>> I am developing an accounting (book keeping ) automation software service.
>>
>> So there are accounting rules (Debit = Dr and credit = Cr) for double
>> entry book keeping.
>>
>> Every transaction will have 2 or more amounts, at least 1 each for dr or
>> Cr.
>>
>> These entries are called vouchers.
>>
>> We also store retail bills, receipts and payments again all in different
>> tables.
>>
>> But the bills and receipt tables are connected to the voucher
>> table.
>>
>> The software generates reports such as cash flow, meaning day's opening
>> balance, total Drs, total crs, and final closing balance (DRs - Crs).
>>
>> then there are Profit and Loss as well as balance sheet reports.
>>
>> All this needs a lot of aggregations (sum and counts ) and also joining
>> of invoice + voucher and recept + voucher tables.
>>
>> so here are my questions.
>>
>> 1: given the fact that I have created materialised views in Postgresql,
>> should I even care to model them and use the ORM syntax instead of raw
>> query?  What would perform better?
>>
>> 2: datasets are going to be huge some times in terms of shear rows (all
>> transactions aka vouchers ) or some times sum and count will be used in
>> complex queries on a huge dataset.
>>
>> Again, should I rely on raw queries or will ORM plan the queries for me
>> better?  Should I instead create stored procedures and call them from my
>> REST API?
>>
>> talking of which,
>>
>> 3: I am using Django REST Framework and serialising records is an option
>> to get json output.
>>
>> Should I use it or just go with raw queries and convert output to JSON
>> as required?
>>
>> Again performance is a question.
>>
>> Tip, My team is very proficient in SQL and yours truely can modestly
>> call himself an expert in the same, so maintenance is not an issue here.
>>
>> Regards.
>>
>> Krishnakant.
>>
>> --
>> 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/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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/CAA2jrmJ0TtbxmfXeSCq5S9p8XsrPjJBf6_gKMRY_MSuTagFt4Q%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/CALv%3Dr_nWJjrSk%3DLbFh-pfL5Ni%2B%2ByZu0qH%3DRU7o7mnpD-eJHcqw%40mail.gmail.com.


Re: Help deciding ORM VS raw SQL trade-off in Complex scenario

2024-07-13 Thread Enock Deghost


On Sun, 14 Jul 2024, 6:15 am Krishnakant Mane,  wrote:

> Hello.
>
> I am seasoned SQLAlchemy user and quite good in node's sequelise ORM.
>
> But I am new to the one with Django.So here's my situation.
>
> I am developing an accounting (book keeping ) automation software service.
>
> So there are accounting rules (Debit = Dr and credit = Cr) for double
> entry book keeping.
>
> Every transaction will have 2 or more amounts, at least 1 each for dr or
> Cr.
>
> These entries are called vouchers.
>
> We also store retail bills, receipts and payments again all in different
> tables.
>
> But the bills and receipt tables are connected to the voucher
> table.
>
> The software generates reports such as cash flow, meaning day's opening
> balance, total Drs, total crs, and final closing balance (DRs - Crs).
>
> then there are Profit and Loss as well as balance sheet reports.
>
> All this needs a lot of aggregations (sum and counts ) and also joining
> of invoice + voucher and recept + voucher tables.
>
> so here are my questions.
>
> 1: given the fact that I have created materialised views in Postgresql,
> should I even care to model them and use the ORM syntax instead of raw
> query?  What would perform better?
>
> 2: datasets are going to be huge some times in terms of shear rows (all
> transactions aka vouchers ) or some times sum and count will be used in
> complex queries on a huge dataset.
>
> Again, should I rely on raw queries or will ORM plan the queries for me
> better?  Should I instead create stored procedures and call them from my
> REST API?
>
> talking of which,
>
> 3: I am using Django REST Framework and serialising records is an option
> to get json output.
>
> Should I use it or just go with raw queries and convert output to JSON
> as required?
>
> Again performance is a question.
>
> Tip, My team is very proficient in SQL and yours truely can modestly
> call himself an expert in the same, so maintenance is not an issue here.
>
> Regards.
>
> Krishnakant.
>
> --
> 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/097a6e55-c30e-491e-bf43-86e4c672faa4%40gmail.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/CAA2jrmJ0TtbxmfXeSCq5S9p8XsrPjJBf6_gKMRY_MSuTagFt4Q%40mail.gmail.com.


Re: Help deploying to vercel

2024-06-23 Thread ASAMOAH EMMANUEL
No, you put all the management command you'll need in a build.sh file. so
you can put say: python manage.py migrate and so on.

On Sun, Jun 23, 2024 at 8:24 PM Gabriel Soler  wrote:

> Hi, I am curious how do you deploy on a function base system with Django,
> when you need to much to access the manage.py?
> How do you deploy in vercel? Does it have a way to reach the command line?
>
> Gabriel
>
> On Friday 14 June 2024 at 15:17:34 UTC+2 Augusto Domingos wrote:
>
>> Hey, sorry for the late reply, I had just gone to bed at that time
>>
>> Weird error...
>>
>> Try specifying the version of django-allauth in your requirements file,
>> then redeploy. Also, please check your Vercel logs carefully, or you can
>> try to install the library in a package like this:  pip install
>> django-allauth -t .  this can sometimes help with deploymnt issues by
>> ensuring all dependencies are available in the project directory
>>
>> If it still doesn't work, persists, it might be related to the Lambda
>> function in Vercel, as it uses AWS infrastructure. In that case, you may
>> need to investigate further or contact Vercel
>> Em quinta-feira, 13 de junho de 2024 às 20:23:13 UTC+2, ASAMOAH EMMANUEL
>> escreveu:
>>
>>> requirements.txt
>>>
>>> arrow==1.3.0
>>> asgiref==3.8.1
>>> binaryornot==0.4.4
>>> certifi==2024.6.2
>>> cffi==1.16.0
>>> chardet==5.2.0
>>> charset-normalizer==3.3.2
>>> click==8.1.7
>>> colorama==0.4.6
>>> cookiecutter==2.6.0
>>> crispy-tailwind==1.0.3
>>> cryptography==42.0.7
>>> defusedxml==0.7.1
>>> Django==4.2.5
>>> django-allauth
>>> django-browser-reload==1.12.1
>>> django-crispy-forms==2.1
>>> django-tailwind
>>> idna==3.7
>>> install==1.3.5
>>> Jinja2==3.1.4
>>> markdown-it-py==3.0.0
>>> MarkupSafe==2.1.5
>>> mdurl==0.1.2
>>> oauthlib==3.2.2
>>> pillow==10.2.0
>>> psycopg2-binary==2.9.7
>>> pycparser==2.22
>>> pycryptodome==3.20.0
>>> Pygments==2.18.0
>>> PyJWT==2.8.0
>>> python-dateutil==2.9.0.post0
>>> python-decouple==3.8
>>> python-slugify==8.0.4
>>> python3-openid==3.2.0
>>> PyYAML==6.0.1
>>> rave-python==1.4.0
>>> requests==2.32.3
>>> requests-oauthlib==2.0.0
>>> rich==13.7.1
>>> six==1.16.0
>>> sqlparse==0.5.0
>>> text-unidecode==1.3
>>> types-python-dateutil==2.9.0.20240316
>>> tzdata==2024.1
>>> urllib3==1.26.6
>>> whitenoise==6.6.0
>>>
>>>
>>> vercel.json
>>>
>>> {
>>>   "version": 2,
>>>   "builds": [
>>> {
>>>   "src": "inshala/wsgi.py",
>>>   "use": "@vercel/python",
>>>   "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" }
>>> },
>>> {
>>>   "src": "build_files.sh",
>>>   "use": "@vercel/static-build",
>>>   "config": {
>>> "distDir": "staticfiles"
>>>   }
>>> }
>>>   ],
>>>   "routes": [
>>> {
>>>   "src": "/static/(.*)",
>>>   "dest": "/static/$1"
>>> },
>>> {
>>>   "src": "/(.*)",
>>>   "dest": "inshala/wsgi.py"
>>> }
>>>   ]
>>> }
>>>
>>>
>>> build_file
>>> # build_files.sh
>>> pip install -r requirements.txt
>>> python3.9 manage.py collectstatic --noinput
>>> python3.9 manage.py migrate
>>>
>>> wsgi.py
>>> """
>>> WSGI config for inshala project.
>>>
>>> It exposes the WSGI callable as a module-level variable named
>>> ``application``.
>>>
>>> For more information on this file, see
>>> https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/
>>> """
>>>
>>> import os
>>>
>>> from django.core.wsgi import get_wsgi_application
>>>
>>> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inshala.settings')
>>>
>>> app = get_wsgi_application()
>>>
>>>
>>>
>>>
>>>
>>> Allauth is already installed on vercel.
>>>
>>> Thanks in advance.
>>>
>>> On Thu, Jun 13, 2024 at 4:59 PM Augusto Domingos <
>>> augustodom...@gmail.com> wrote:
>>>

 Looks there's a problem with your module "allauth", have you installed
 that in your Vercel environment?

 Try to install that, certify that your vercel.json file have some rules
 to install your python requirements.txt

 If have some another question, please, let me know, I will try to help
 you.

 --
 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com
 
 .

>>>
>>>
>>> --
>>> I don't stop when I'm tired, I only stop when the job is done.
>>>
>> --
> 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
> 

Re: Help deploying to vercel

2024-06-23 Thread Gabriel Soler
Hi, I am curious how do you deploy on a function base system with Django, 
when you need to much to access the manage.py?
How do you deploy in vercel? Does it have a way to reach the command line?

Gabriel 

On Friday 14 June 2024 at 15:17:34 UTC+2 Augusto Domingos wrote:

> Hey, sorry for the late reply, I had just gone to bed at that time
>
> Weird error...
>
> Try specifying the version of django-allauth in your requirements file, 
> then redeploy. Also, please check your Vercel logs carefully, or you can 
> try to install the library in a package like this:  pip install 
> django-allauth -t .  this can sometimes help with deploymnt issues by 
> ensuring all dependencies are available in the project directory
>
> If it still doesn't work, persists, it might be related to the Lambda 
> function in Vercel, as it uses AWS infrastructure. In that case, you may 
> need to investigate further or contact Vercel
> Em quinta-feira, 13 de junho de 2024 às 20:23:13 UTC+2, ASAMOAH EMMANUEL 
> escreveu:
>
>> requirements.txt
>>
>> arrow==1.3.0
>> asgiref==3.8.1
>> binaryornot==0.4.4
>> certifi==2024.6.2
>> cffi==1.16.0
>> chardet==5.2.0
>> charset-normalizer==3.3.2
>> click==8.1.7
>> colorama==0.4.6
>> cookiecutter==2.6.0
>> crispy-tailwind==1.0.3
>> cryptography==42.0.7
>> defusedxml==0.7.1
>> Django==4.2.5
>> django-allauth
>> django-browser-reload==1.12.1
>> django-crispy-forms==2.1
>> django-tailwind
>> idna==3.7
>> install==1.3.5
>> Jinja2==3.1.4
>> markdown-it-py==3.0.0
>> MarkupSafe==2.1.5
>> mdurl==0.1.2
>> oauthlib==3.2.2
>> pillow==10.2.0
>> psycopg2-binary==2.9.7
>> pycparser==2.22
>> pycryptodome==3.20.0
>> Pygments==2.18.0
>> PyJWT==2.8.0
>> python-dateutil==2.9.0.post0
>> python-decouple==3.8
>> python-slugify==8.0.4
>> python3-openid==3.2.0
>> PyYAML==6.0.1
>> rave-python==1.4.0
>> requests==2.32.3
>> requests-oauthlib==2.0.0
>> rich==13.7.1
>> six==1.16.0
>> sqlparse==0.5.0
>> text-unidecode==1.3
>> types-python-dateutil==2.9.0.20240316
>> tzdata==2024.1
>> urllib3==1.26.6
>> whitenoise==6.6.0
>>
>>
>> vercel.json
>>
>> {
>>   "version": 2,
>>   "builds": [
>> {
>>   "src": "inshala/wsgi.py",
>>   "use": "@vercel/python",
>>   "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" }
>> },
>> {
>>   "src": "build_files.sh",
>>   "use": "@vercel/static-build",
>>   "config": {
>> "distDir": "staticfiles"
>>   }
>> }
>>   ],
>>   "routes": [
>> {
>>   "src": "/static/(.*)",
>>   "dest": "/static/$1"
>> },
>> {
>>   "src": "/(.*)",
>>   "dest": "inshala/wsgi.py"
>> }
>>   ]
>> }
>>
>>
>> build_file
>> # build_files.sh
>> pip install -r requirements.txt
>> python3.9 manage.py collectstatic --noinput
>> python3.9 manage.py migrate
>>
>> wsgi.py
>> """
>> WSGI config for inshala project.
>>
>> It exposes the WSGI callable as a module-level variable named 
>> ``application``.
>>
>> For more information on this file, see
>> https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/
>> """
>>
>> import os
>>
>> from django.core.wsgi import get_wsgi_application
>>
>> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inshala.settings')
>>
>> app = get_wsgi_application()
>>
>>
>>
>>
>>
>> Allauth is already installed on vercel.
>>
>> Thanks in advance.
>>
>> On Thu, Jun 13, 2024 at 4:59 PM Augusto Domingos  
>> wrote:
>>
>>>
>>> Looks there's a problem with your module "allauth", have you installed 
>>> that in your Vercel environment?
>>>
>>> Try to install that, certify that your vercel.json file have some rules 
>>> to install your python requirements.txt
>>>
>>> If have some another question, please, let me know, I will try to help 
>>> you.
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>>
>> -- 
>> I don't stop when I'm tired, I only stop when the job is done.
>>
>

-- 
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/140b0cc2-944f-4dd5-82a7-9b3bbd161220n%40googlegroups.com.


Re: Help deploying to vercel

2024-06-14 Thread Augusto Domingos


Hey, sorry for the late reply, I had just gone to bed at that time

Weird error...

Try specifying the version of django-allauth in your requirements file, 
then redeploy. Also, please check your Vercel logs carefully, or you can 
try to install the library in a package like this:  pip install 
django-allauth -t .  this can sometimes help with deploymnt issues by 
ensuring all dependencies are available in the project directory

If it still doesn't work, persists, it might be related to the Lambda 
function in Vercel, as it uses AWS infrastructure. In that case, you may 
need to investigate further or contact Vercel
Em quinta-feira, 13 de junho de 2024 às 20:23:13 UTC+2, ASAMOAH EMMANUEL 
escreveu:

> requirements.txt
>
> arrow==1.3.0
> asgiref==3.8.1
> binaryornot==0.4.4
> certifi==2024.6.2
> cffi==1.16.0
> chardet==5.2.0
> charset-normalizer==3.3.2
> click==8.1.7
> colorama==0.4.6
> cookiecutter==2.6.0
> crispy-tailwind==1.0.3
> cryptography==42.0.7
> defusedxml==0.7.1
> Django==4.2.5
> django-allauth
> django-browser-reload==1.12.1
> django-crispy-forms==2.1
> django-tailwind
> idna==3.7
> install==1.3.5
> Jinja2==3.1.4
> markdown-it-py==3.0.0
> MarkupSafe==2.1.5
> mdurl==0.1.2
> oauthlib==3.2.2
> pillow==10.2.0
> psycopg2-binary==2.9.7
> pycparser==2.22
> pycryptodome==3.20.0
> Pygments==2.18.0
> PyJWT==2.8.0
> python-dateutil==2.9.0.post0
> python-decouple==3.8
> python-slugify==8.0.4
> python3-openid==3.2.0
> PyYAML==6.0.1
> rave-python==1.4.0
> requests==2.32.3
> requests-oauthlib==2.0.0
> rich==13.7.1
> six==1.16.0
> sqlparse==0.5.0
> text-unidecode==1.3
> types-python-dateutil==2.9.0.20240316
> tzdata==2024.1
> urllib3==1.26.6
> whitenoise==6.6.0
>
>
> vercel.json
>
> {
>   "version": 2,
>   "builds": [
> {
>   "src": "inshala/wsgi.py",
>   "use": "@vercel/python",
>   "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" }
> },
> {
>   "src": "build_files.sh",
>   "use": "@vercel/static-build",
>   "config": {
> "distDir": "staticfiles"
>   }
> }
>   ],
>   "routes": [
> {
>   "src": "/static/(.*)",
>   "dest": "/static/$1"
> },
> {
>   "src": "/(.*)",
>   "dest": "inshala/wsgi.py"
> }
>   ]
> }
>
>
> build_file
> # build_files.sh
> pip install -r requirements.txt
> python3.9 manage.py collectstatic --noinput
> python3.9 manage.py migrate
>
> wsgi.py
> """
> WSGI config for inshala project.
>
> It exposes the WSGI callable as a module-level variable named 
> ``application``.
>
> For more information on this file, see
> https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/
> """
>
> import os
>
> from django.core.wsgi import get_wsgi_application
>
> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inshala.settings')
>
> app = get_wsgi_application()
>
>
>
>
>
> Allauth is already installed on vercel.
>
> Thanks in advance.
>
> On Thu, Jun 13, 2024 at 4:59 PM Augusto Domingos  
> wrote:
>
>>
>> Looks there's a problem with your module "allauth", have you installed 
>> that in your Vercel environment?
>>
>> Try to install that, certify that your vercel.json file have some rules 
>> to install your python requirements.txt
>>
>> If have some another question, please, let me know, I will try to help 
>> you.
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> I don't stop when I'm tired, I only stop when the job is done.
>

-- 
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/59eddcba-f86e-4850-b8d3-f06695807192n%40googlegroups.com.


Re: Help deploying to vercel

2024-06-13 Thread ASAMOAH EMMANUEL
requirements.txt

arrow==1.3.0
asgiref==3.8.1
binaryornot==0.4.4
certifi==2024.6.2
cffi==1.16.0
chardet==5.2.0
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
cookiecutter==2.6.0
crispy-tailwind==1.0.3
cryptography==42.0.7
defusedxml==0.7.1
Django==4.2.5
django-allauth
django-browser-reload==1.12.1
django-crispy-forms==2.1
django-tailwind
idna==3.7
install==1.3.5
Jinja2==3.1.4
markdown-it-py==3.0.0
MarkupSafe==2.1.5
mdurl==0.1.2
oauthlib==3.2.2
pillow==10.2.0
psycopg2-binary==2.9.7
pycparser==2.22
pycryptodome==3.20.0
Pygments==2.18.0
PyJWT==2.8.0
python-dateutil==2.9.0.post0
python-decouple==3.8
python-slugify==8.0.4
python3-openid==3.2.0
PyYAML==6.0.1
rave-python==1.4.0
requests==2.32.3
requests-oauthlib==2.0.0
rich==13.7.1
six==1.16.0
sqlparse==0.5.0
text-unidecode==1.3
types-python-dateutil==2.9.0.20240316
tzdata==2024.1
urllib3==1.26.6
whitenoise==6.6.0


vercel.json

{
  "version": 2,
  "builds": [
{
  "src": "inshala/wsgi.py",
  "use": "@vercel/python",
  "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" }
},
{
  "src": "build_files.sh",
  "use": "@vercel/static-build",
  "config": {
"distDir": "staticfiles"
  }
}
  ],
  "routes": [
{
  "src": "/static/(.*)",
  "dest": "/static/$1"
},
{
  "src": "/(.*)",
  "dest": "inshala/wsgi.py"
}
  ]
}


build_file
# build_files.sh
pip install -r requirements.txt
python3.9 manage.py collectstatic --noinput
python3.9 manage.py migrate

wsgi.py
"""
WSGI config for inshala project.

It exposes the WSGI callable as a module-level variable named
``application``.

For more information on this file, see
https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inshala.settings')

app = get_wsgi_application()





Allauth is already installed on vercel.

Thanks in advance.

On Thu, Jun 13, 2024 at 4:59 PM Augusto Domingos <
augustodomingosva...@gmail.com> wrote:

>
> Looks there's a problem with your module "allauth", have you installed
> that in your Vercel environment?
>
> Try to install that, certify that your vercel.json file have some rules to
> install your python requirements.txt
>
> If have some another question, please, let me know, I will try to help you.
>
> --
> 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/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com
> 
> .
>


-- 
I don't stop when I'm tired, I only stop when the job is done.

-- 
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/CABFHQYxux-CHhQh4HJtkcXfCr2TLR21_s3A8BMd5GjuBrFG7OQ%40mail.gmail.com.


Re: Help deploying to vercel

2024-06-13 Thread Augusto Domingos

Looks there's a problem with your module "allauth", have you installed that 
in your Vercel environment?

Try to install that, certify that your vercel.json file have some rules to 
install your python requirements.txt

If have some another question, please, let me know, I will try to help you.

-- 
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/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com.


Re: Help on Creating a Superuser account on render.

2024-04-11 Thread ALINDA Fortunate
Thanks so much for your assistance indeed the issue was I had failed to
visualise my data on railway since I am using an external database. A
friend helped understand that and now I am able to access my admin panel.

Thanks everyone.

On Wed, 10 Apr 2024, 19:59 Luis Zárate,  wrote:

> Maybe something like
>
> python manage.py shell -c "from django.contrib.auth.hashers import
> make_password;from django.contrib.auth.models import User; admin =
> User(username='username', email='exam...@example.com',
> password=make_password('password'),
> is_superuser=True,is_staff=True);admin.save()"
>
>
>
> El dom, 7 abr 2024 a las 2:13, ALINDA Fortunate (<
> alindafortuna...@gmail.com>) escribió:
>
>> It's my external database is postgres on railway.
>>
>> Let me try your opinion and I see.
>>
>> On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
>> wrote:
>>
>>> So you have used render to host your application, you might have
>>> connected an external database (postgreSQL or any other) you might have
>>> used the environment setup to set the database up with the postgreSQL
>>> hosted either on render itself or on a different server, just connect the
>>> database with your application on your local host and create a super user
>>> since the database is same on the render's server's application the
>>> superuser will be same as the superuser you created on the local server
>>> thus you can access the admin panel
>>>
>>>
>>> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>>>
 Hello I have successfully a django project on render but i have failed
 to access the admin panel

 Any idea on how to create a superuser account on a free tier of render

 Below is my build.sh file
 #!/usr/bin/env bash
 # Exit on error
 set -o errexit



 # Modify this line as needed for your package manager (pip, poetry,
 etc.)
 pip install -r requirements.txt

 # Convert static asset files
 python manage.py collectstatic --no-input

 # Apply any outstanding database migrations
 python manage.py migrate

 if [[ $CREATE_SUPERUSER ]];
 then
   python world_champ_2022/manage.py createsuperuser --no-input
 fi






 --
 ALINDA Fortunate
 Graduate Of Computer Science
 Gulu University
 Passionate about Software Development in Python
 If you can't explain it simply, you don't understand it well enough.
 alindafo...@gmail.com.
 +256 774339676 <+256%20774%20339676> / +256 702910041
 <+256%20702%20910041>
 Kagadi.

>>> --
>>> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
> --
> 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/CAG%2B5VyOcJ%2BeL3dTgVHfgW1tjH5p6-qHUzKq83t3z8xK7iNFGdQ%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/CAPifpCtM6bEOREKdmzD5-XOS7PZ4p6C9KTeMKt04FzS3yNZ8cw%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-10 Thread Luis Zárate
Maybe something like

python manage.py shell -c "from django.contrib.auth.hashers import
make_password;from django.contrib.auth.models import User; admin =
User(username='username', email='exam...@example.com',
password=make_password('password'),
is_superuser=True,is_staff=True);admin.save()"



El dom, 7 abr 2024 a las 2:13, ALINDA Fortunate ()
escribió:

> It's my external database is postgres on railway.
>
> Let me try your opinion and I see.
>
> On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
> wrote:
>
>> So you have used render to host your application, you might have
>> connected an external database (postgreSQL or any other) you might have
>> used the environment setup to set the database up with the postgreSQL
>> hosted either on render itself or on a different server, just connect the
>> database with your application on your local host and create a super user
>> since the database is same on the render's server's application the
>> superuser will be same as the superuser you created on the local server
>> thus you can access the admin panel
>>
>>
>> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>>
>>> Hello I have successfully a django project on render but i have failed
>>> to access the admin panel
>>>
>>> Any idea on how to create a superuser account on a free tier of render
>>>
>>> Below is my build.sh file
>>> #!/usr/bin/env bash
>>> # Exit on error
>>> set -o errexit
>>>
>>>
>>>
>>> # Modify this line as needed for your package manager (pip, poetry, etc.)
>>> pip install -r requirements.txt
>>>
>>> # Convert static asset files
>>> python manage.py collectstatic --no-input
>>>
>>> # Apply any outstanding database migrations
>>> python manage.py migrate
>>>
>>> if [[ $CREATE_SUPERUSER ]];
>>> then
>>>   python world_champ_2022/manage.py createsuperuser --no-input
>>> fi
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> ALINDA Fortunate
>>> Graduate Of Computer Science
>>> Gulu University
>>> Passionate about Software Development in Python
>>> If you can't explain it simply, you don't understand it well enough.
>>> alindafo...@gmail.com.
>>> +256 774339676 <+256%20774%20339676> / +256 702910041
>>> <+256%20702%20910041>
>>> Kagadi.
>>>
>> --
>> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyOcJ%2BeL3dTgVHfgW1tjH5p6-qHUzKq83t3z8xK7iNFGdQ%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-07 Thread ALINDA Fortunate
It's my external database is postgres on railway.

Let me try your opinion and I see.

On Sat, 6 Apr 2024, 20:33 Aniket Raj Singh, 
wrote:

> So you have used render to host your application, you might have connected
> an external database (postgreSQL or any other) you might have used the
> environment setup to set the database up with the postgreSQL hosted either
> on render itself or on a different server, just connect the database with
> your application on your local host and create a super user since the
> database is same on the render's server's application the superuser will be
> same as the superuser you created on the local server thus you can access
> the admin panel
>
>
> On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:
>
>> Hello I have successfully a django project on render but i have failed to
>> access the admin panel
>>
>> Any idea on how to create a superuser account on a free tier of render
>>
>> Below is my build.sh file
>> #!/usr/bin/env bash
>> # Exit on error
>> set -o errexit
>>
>>
>>
>> # Modify this line as needed for your package manager (pip, poetry, etc.)
>> pip install -r requirements.txt
>>
>> # Convert static asset files
>> python manage.py collectstatic --no-input
>>
>> # Apply any outstanding database migrations
>> python manage.py migrate
>>
>> if [[ $CREATE_SUPERUSER ]];
>> then
>>   python world_champ_2022/manage.py createsuperuser --no-input
>> fi
>>
>>
>>
>>
>>
>>
>> --
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041
>> <+256%20702%20910041>
>> Kagadi.
>>
> --
> 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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%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/CAPifpCsa%2BrmS3OWiycH_309ROvMcazv2Z_E76UcZiZKEb%3D3YPg%40mail.gmail.com.


Re: Help on Creating a Superuser account on render.

2024-04-06 Thread Aniket Raj Singh
So you have used render to host your application, you might have connected 
an external database (postgreSQL or any other) you might have used the 
environment setup to set the database up with the postgreSQL hosted either 
on render itself or on a different server, just connect the database with 
your application on your local host and create a super user since the 
database is same on the render's server's application the superuser will be 
same as the superuser you created on the local server thus you can access 
the admin panel


On Saturday 6 April, 2024 at 9:58:00 pm UTC+5:30 ALINDA Fortunate wrote:

> Hello I have successfully a django project on render but i have failed to 
> access the admin panel 
>
> Any idea on how to create a superuser account on a free tier of render
>
> Below is my build.sh file
> #!/usr/bin/env bash
> # Exit on error
> set -o errexit
>
>
>
> # Modify this line as needed for your package manager (pip, poetry, etc.)
> pip install -r requirements.txt
>
> # Convert static asset files
> python manage.py collectstatic --no-input
>
> # Apply any outstanding database migrations
> python manage.py migrate
>
> if [[ $CREATE_SUPERUSER ]];
> then
>   python world_champ_2022/manage.py createsuperuser --no-input
> fi
>
>
>
>
>
>
> -- 
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafo...@gmail.com.
> +256 774339676 <+256%20774%20339676> / +256 702910041 
> <+256%20702%20910041>
> Kagadi.
>

-- 
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/9dabff6a-7f5a-4d30-a097-a128f68a6feen%40googlegroups.com.


Re: Help on Django_allauth Login Page

2024-03-08 Thread ALINDA Fortunate
Thank you for your response, okay let me try it

On Fri, Mar 8, 2024 at 5:48 PM Muhammad Juwaini Abdul Rahman <
juwa...@gmail.com> wrote:

> It's part of LoginForm in django_allauth:
> https://github.com/pennersr/django-allauth/blob/main/allauth/account/forms.py#L146
>
> You can subclass LoginForm and omit that part.
>
> On Fri, 8 Mar 2024 at 22:34, ALINDA Fortunate 
> wrote:
>
>> Hello colleagues, I have the following code for my login page using
>> django_allauth but it outputs the *forgot password?* link. How do I edit
>> this?
>>
>> 
>> {% extends "_base.html" %}
>>
>> {%load crispy_forms_tags%}
>>
>> {% block title %}Log In{% endblock title %}
>> {% block content %}
>> Log In
>> {% csrf_token%}
>> {{form | crispy}}
>>
>> Log In
>>
>> 
>> {% endblock content %}
>>
>>
>> And the output has f*orgot** password? link.* How do I remove it or
>> style it?
>>
>> Below is the output.
>>
>>
>> [image: image.png]
>>
>> --
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafortuna...@gmail.com .
>> +256 774339676 / +256 702910041
>> Kagadi.
>>
>> --
>> 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/CAPifpCtpktOM0dRwGceOd2jP5xGRso6xwey7SvDNv%3DSMsZm0yA%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/CAFKhtoSgoD0y_fom1K_pr3w1esm3N3Cj5%2BybqDemv%2BzA7vqeXg%40mail.gmail.com
> 
> .
>


-- 
ALINDA Fortunate
Graduate Of Computer Science
Gulu University
Passionate about Software Development in Python
If you can't explain it simply, you don't understand it well enough.
alindafortuna...@gmail.com .
+256 774339676 / +256 702910041
Kagadi.

-- 
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/CAPifpCsqiE86Oxc-jP%2B8zUANfL1u-SSz-RM9%3DMqY6p22cPV%3D8w%40mail.gmail.com.


Re: Help on Django_allauth Login Page

2024-03-08 Thread Muhammad Juwaini Abdul Rahman
It's part of LoginForm in django_allauth:
https://github.com/pennersr/django-allauth/blob/main/allauth/account/forms.py#L146

You can subclass LoginForm and omit that part.

On Fri, 8 Mar 2024 at 22:34, ALINDA Fortunate 
wrote:

> Hello colleagues, I have the following code for my login page using
> django_allauth but it outputs the *forgot password?* link. How do I edit
> this?
>
> 
> {% extends "_base.html" %}
>
> {%load crispy_forms_tags%}
>
> {% block title %}Log In{% endblock title %}
> {% block content %}
> Log In
> {% csrf_token%}
> {{form | crispy}}
>
> Log In
>
> 
> {% endblock content %}
>
>
> And the output has f*orgot** password? link.* How do I remove it or style
> it?
>
> Below is the output.
>
>
> [image: image.png]
>
> --
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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/CAPifpCtpktOM0dRwGceOd2jP5xGRso6xwey7SvDNv%3DSMsZm0yA%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/CAFKhtoSgoD0y_fom1K_pr3w1esm3N3Cj5%2BybqDemv%2BzA7vqeXg%40mail.gmail.com.


Re: Help with DRF error

2023-12-16 Thread Larry Martell
On Sat, Dec 16, 2023 at 1:10 PM Reddy Tintaya  wrote:

> Can't you just use
> workitem = serializers.PrimaryKeyRelatedField(
> queryset=WorkItem.objects.all())
> instead of workitem_id?
>

No because workitem_id is what is sent in the request.


>
> On Sat, Dec 16, 2023 at 10:00 AM Larry Martell 
> wrote:
>
>> I have a DRF API. It is throwing an error that I have not been able to
>> fix.
>>
>> Here is my view and serializer:
>>
>> class CreateNotations(CreateAPIView):
>> permission_classes = [IsAuthenticated]
>> serializer_class = NotationListSerializer
>>
>> def post(self, request, *args, **kwargs):
>> return super().post(request, *args, **kwargs)
>>
>> class NotationListSerializer(serializers.Serializer):
>> workitem_id =
>> serializers.PrimaryKeyRelatedField(queryset=WorkItem.objects.all(),
>> source="workitem")
>> notations = NotationSerializer(many=True)
>>
>> def create(self, validated_data):
>> workitem = validated_data["workitem"]
>>
>> IncompleteAnalysis.objects.filter(workitem=workitem).delete()
>>
>> data = []
>> for notation in validated_data["notations"]:
>> data.append({
>> 'workitem': workitem,
>> 'incomplete_analysis_reason': notation["reason"],
>> 'vessel_affected': notation["vessel"],
>> 'user': self.context['request'].user,
>> 'timestamp': datetime.now().isoformat()
>> })
>>
>> return
>> IncompleteAnalysis.objects.bulk_create([IncompleteAnalysis(**d) for d in
>> data])
>>
>> The body of the request received is:
>>
>> {'workitem_id': 244, 'notations': [{'reason_id": 4, 'vessel_id': 6}]}
>>
>> It fails with this:
>>
>> AttributeError: Got AttributeError when attempting to get a value for
>> field `workitem_id` on serializer `NotationListSerializer`.
>> The serializer field might be named incorrectly and not match any
>> attribute or key on the `list` instance.
>> Original exception text was: 'list' object has no attribute 'workitem'.
>>
>> Here is the stack trace:
>>
>> ERRORdjango.request:log.py:241 Internal Server Error: /api/notations/
>> Traceback (most recent call last):
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
>> line 446, in get_attribute
>> return get_attribute(instance, self.source_attrs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
>> line 96, in get_attribute
>> instance = getattr(instance, attr)
>> AttributeError: 'list' object has no attribute 'workitem'
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/exception.py",
>> line 56, in inner
>> response = get_response(request)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/base.py",
>> line 197, in _get_response
>> response = wrapped_callback(request, *callback_args,
>> **callback_kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/django/views/decorators/csrf.py",
>> line 55, in wrapped_view
>> return view_func(*args, **kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/django/views/generic/base.py",
>> line 103, in view
>> return self.dispatch(request, *args, **kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
>> line 509, in dispatch
>> response = self.handle_exception(exc)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
>> line 469, in handle_exception
>> self.raise_uncaught_exception(exc)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
>> line 480, in raise_uncaught_exception
>> raise exc
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
>> line 506, in dispatch
>> response = handler(request, *args, **kwargs)
>>   File "/inst/martell/EVServer/app/CAPgraph/createevapi/views.py", line
>> 1270, in post
>> return super().post(request, *args, **kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/generics.py",
>> line 190, in post
>> return self.create(request, *args, **kwargs)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/mixins.py",
>> line 20, in create
>> headers = self.get_success_headers(serializer.data)
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
>> line 555, in data
>> ret = super().data
>>   File
>> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
>> line 253, in data
>> self._data = self.to_representation(self.instance)
>>   File
>> 

Re: Help with DRF error

2023-12-16 Thread Reddy Tintaya
Can't you just use
workitem = serializers.PrimaryKeyRelatedField(
queryset=WorkItem.objects.all())
instead of workitem_id?

On Sat, Dec 16, 2023 at 10:00 AM Larry Martell 
wrote:

> I have a DRF API. It is throwing an error that I have not been able to fix.
>
> Here is my view and serializer:
>
> class CreateNotations(CreateAPIView):
> permission_classes = [IsAuthenticated]
> serializer_class = NotationListSerializer
>
> def post(self, request, *args, **kwargs):
> return super().post(request, *args, **kwargs)
>
> class NotationListSerializer(serializers.Serializer):
> workitem_id =
> serializers.PrimaryKeyRelatedField(queryset=WorkItem.objects.all(),
> source="workitem")
> notations = NotationSerializer(many=True)
>
> def create(self, validated_data):
> workitem = validated_data["workitem"]
>
> IncompleteAnalysis.objects.filter(workitem=workitem).delete()
>
> data = []
> for notation in validated_data["notations"]:
> data.append({
> 'workitem': workitem,
> 'incomplete_analysis_reason': notation["reason"],
> 'vessel_affected': notation["vessel"],
> 'user': self.context['request'].user,
> 'timestamp': datetime.now().isoformat()
> })
>
> return
> IncompleteAnalysis.objects.bulk_create([IncompleteAnalysis(**d) for d in
> data])
>
> The body of the request received is:
>
> {'workitem_id': 244, 'notations': [{'reason_id": 4, 'vessel_id': 6}]}
>
> It fails with this:
>
> AttributeError: Got AttributeError when attempting to get a value for
> field `workitem_id` on serializer `NotationListSerializer`.
> The serializer field might be named incorrectly and not match any
> attribute or key on the `list` instance.
> Original exception text was: 'list' object has no attribute 'workitem'.
>
> Here is the stack trace:
>
> ERRORdjango.request:log.py:241 Internal Server Error: /api/notations/
> Traceback (most recent call last):
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
> line 446, in get_attribute
> return get_attribute(instance, self.source_attrs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
> line 96, in get_attribute
> instance = getattr(instance, attr)
> AttributeError: 'list' object has no attribute 'workitem'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/exception.py",
> line 56, in inner
> response = get_response(request)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/django/core/handlers/base.py",
> line 197, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/django/views/decorators/csrf.py",
> line 55, in wrapped_view
> return view_func(*args, **kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/django/views/generic/base.py",
> line 103, in view
> return self.dispatch(request, *args, **kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
> line 509, in dispatch
> response = self.handle_exception(exc)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
> line 469, in handle_exception
> self.raise_uncaught_exception(exc)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
> line 480, in raise_uncaught_exception
> raise exc
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/views.py",
> line 506, in dispatch
> response = handler(request, *args, **kwargs)
>   File "/inst/martell/EVServer/app/CAPgraph/createevapi/views.py", line
> 1270, in post
> return super().post(request, *args, **kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/generics.py",
> line 190, in post
> return self.create(request, *args, **kwargs)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/mixins.py",
> line 20, in create
> headers = self.get_success_headers(serializer.data)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
> line 555, in data
> ret = super().data
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
> line 253, in data
> self._data = self.to_representation(self.instance)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/serializers.py",
> line 509, in to_representation
> attribute = field.get_attribute(instance)
>   File
> "/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/relations.py",
> line 190, in get_attribute
> return 

Re: help me

2023-09-25 Thread Migui Galan
you can try exploring vercel. they can host django website.
other than that, try pythonanywhere. best site for hosting django

On Sun, Sep 24, 2023 at 9:52 AM FIRDOUS BHAT  wrote:

> https://blog.back4app.com/top-10-heroku-alternatives/
>
>
>
>
> On Sun, Sep 24, 2023 at 12:14 AM Akoo Rahimi 
> wrote:
>
>> Hello friends
>>
>> Can you introduce me some sites similar to Heroku?
>>
>> I just started Django and I want to test my projects on the global server.
>>
>> --
>> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CAFB6YJrmzsa8ReiikRC2q3vs8VCkpNQZ0mrvqPLLvmrzaq8FiQ%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/CAKKJMPOmT66f9dgm%2B69Sqq7b8LLmQw6yFpB4vPSuQheWfHtV4A%40mail.gmail.com.


Re: help me

2023-09-23 Thread FIRDOUS BHAT
https://blog.back4app.com/top-10-heroku-alternatives/




On Sun, Sep 24, 2023 at 12:14 AM Akoo Rahimi 
wrote:

> Hello friends
>
> Can you introduce me some sites similar to Heroku?
>
> I just started Django and I want to test my projects on the global server.
>
> --
> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CAFB6YJrmzsa8ReiikRC2q3vs8VCkpNQZ0mrvqPLLvmrzaq8FiQ%40mail.gmail.com.


Re: help me

2023-09-23 Thread ASAMOAH EMMANUEL
Try fly.io

On Sat, Sep 23, 2023 at 7:17 PM ALINDA Fortunate 
wrote:

> You can as well try render
>
> +256774339676
>
>  "If you want to live a happy life, tie it to a goal, not to people or
> things."
>
> A graduate of Bachelors Degree of Science in Computer Science of Gulu
> University.
>
> @FortunateAlinda
> Passionate about Python Development
> And Computer related Dynamics
>
> On Sat, Sep 23, 2023, 21:44 Akoo Rahimi  wrote:
>
>> Hello friends
>>
>> Can you introduce me some sites similar to Heroku?
>>
>> I just started Django and I want to test my projects on the global server.
>>
>> --
>> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CAPifpCt4TpYpHY%2B2uV5yV2bEpUYrn6q5wYWftg6PG9AdOD5e6w%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/CABFHQYz4Z5uS1R%2BpzmyE_vQVv%2Bezv264f8drZi9s2xCXAgG0qQ%40mail.gmail.com.


Re: help me

2023-09-23 Thread ALINDA Fortunate
You can as well try render

+256774339676

 "If you want to live a happy life, tie it to a goal, not to people or
things."

A graduate of Bachelors Degree of Science in Computer Science of Gulu
University.

@FortunateAlinda
Passionate about Python Development
And Computer related Dynamics

On Sat, Sep 23, 2023, 21:44 Akoo Rahimi  wrote:

> Hello friends
>
> Can you introduce me some sites similar to Heroku?
>
> I just started Django and I want to test my projects on the global server.
>
> --
> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CAPifpCt4TpYpHY%2B2uV5yV2bEpUYrn6q5wYWftg6PG9AdOD5e6w%40mail.gmail.com.


Re: help me

2023-09-23 Thread Miracle
Kindly use this link

https://www.makeuseof.com/heroku-alternatives-free-full-stack-hosting/

On Sat, 23 Sept 2023, 7:44 pm Akoo Rahimi, 
wrote:

> Hello friends
>
> Can you introduce me some sites similar to Heroku?
>
> I just started Django and I want to test my projects on the global server.
>
> --
> 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/dccab8c0-8d51-4338-a085-300fdfc0eeadn%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/CADZv-jBhWPr%3DZaiQ9C2zpA6CVsXZ3jY8LWEactd8-mmihqXLBg%40mail.gmail.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread Peter Benjamin Ani
Where are you hosting?

On Thu, 24 Aug 2023 at 22:37, ALINDA Fortunate 
wrote:

> Hello family some help i have this error
>
> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's
> installed and available on your PYTHONPATH environment variable? Did you
> forget to activate a virtual environment?
> Aug 25 12:28:30 AM  ==> Build failed 
>
> Yet this is my requirements file and django is installed
> asgiref==3.6.0
> dj-database-url==2.1.0
> Django==4.2.1
> gunicorn==21.2.0
> packaging==23.1
> psycopg2==2.9.7
> python-dotenv==1.0.0
> sqlparse==0.4.4
> typing_extensions==4.7.1
> tzdata==2023.3
> whitenoise==6.5.0
>
>
> Kindly help me.
> --
>
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%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/CAPxt_2W%2Bdmt%2BjxXEY%3Dd9MbBCcZ9Dj1VX7KMQiiSiiT%3DgiBbt2A%40mail.gmail.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread ivan harold

Try following these

https://www.freecodecamp.org/news/deploying-a-django-app-to-render/
On Friday, August 25, 2023 at 9:00:08 PM UTC+8 Abdulrahman Abbas wrote:

> Are you using virtual environment?
>
> On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate  
> wrote:
>
>> Hello family some help i have this error
>>
>> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure 
>> it's installed and available on your PYTHONPATH environment variable? Did 
>> you forget to activate a virtual environment?
>> Aug 25 12:28:30 AM  ==> Build failed 
>>
>> Yet this is my requirements file and django is installed
>> asgiref==3.6.0
>> dj-database-url==2.1.0
>> Django==4.2.1
>> gunicorn==21.2.0
>> packaging==23.1
>> psycopg2==2.9.7
>> python-dotenv==1.0.0
>> sqlparse==0.4.4
>> typing_extensions==4.7.1
>> tzdata==2023.3
>> whitenoise==6.5.0
>>
>>
>> Kindly help me.
>> --
>>
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041 
>> <+256%20702%20910041>
>> Kagadi.
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%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/2dda8d5e-4f1b-4784-acaa-a44ed555e0cen%40googlegroups.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread ivan harold

https://www.freecodecamp.org/news/deploying-a-django-app-to-render/
On Friday, August 25, 2023 at 9:00:08 PM UTC+8 Abdulrahman Abbas wrote:

> Are you using virtual environment?
>
> On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate  
> wrote:
>
>> Hello family some help i have this error
>>
>> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure 
>> it's installed and available on your PYTHONPATH environment variable? Did 
>> you forget to activate a virtual environment?
>> Aug 25 12:28:30 AM  ==> Build failed 
>>
>> Yet this is my requirements file and django is installed
>> asgiref==3.6.0
>> dj-database-url==2.1.0
>> Django==4.2.1
>> gunicorn==21.2.0
>> packaging==23.1
>> psycopg2==2.9.7
>> python-dotenv==1.0.0
>> sqlparse==0.4.4
>> typing_extensions==4.7.1
>> tzdata==2023.3
>> whitenoise==6.5.0
>>
>>
>> Kindly help me.
>> --
>>
>> ALINDA Fortunate
>> Graduate Of Computer Science
>> Gulu University
>> Passionate about Software Development in Python
>> If you can't explain it simply, you don't understand it well enough.
>> alindafo...@gmail.com.
>> +256 774339676 <+256%20774%20339676> / +256 702910041 
>> <+256%20702%20910041>
>> Kagadi.
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%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/e95a3141-fa1c-4247-86fb-16b8886beeccn%40googlegroups.com.


Re: Help on Error while deploying a django app on render.

2023-08-25 Thread Abdulrahman Abbas
Are you using virtual environment?

On Thu, Aug 24, 2023, 22:37 ALINDA Fortunate 
wrote:

> Hello family some help i have this error
>
> Aug 25 12:28:30 AM  ImportError: Couldn't import Django. Are you sure it's
> installed and available on your PYTHONPATH environment variable? Did you
> forget to activate a virtual environment?
> Aug 25 12:28:30 AM  ==> Build failed 
>
> Yet this is my requirements file and django is installed
> asgiref==3.6.0
> dj-database-url==2.1.0
> Django==4.2.1
> gunicorn==21.2.0
> packaging==23.1
> psycopg2==2.9.7
> python-dotenv==1.0.0
> sqlparse==0.4.4
> typing_extensions==4.7.1
> tzdata==2023.3
> whitenoise==6.5.0
>
>
> Kindly help me.
> --
>
> ALINDA Fortunate
> Graduate Of Computer Science
> Gulu University
> Passionate about Software Development in Python
> If you can't explain it simply, you don't understand it well enough.
> alindafortuna...@gmail.com .
> +256 774339676 / +256 702910041
> Kagadi.
>
> --
> 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/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%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/CAGGqo0PSZ%2BEmttU3KkZ14EidSxPzM0JSo4Wp6m30FCRRRj8Htw%40mail.gmail.com.


Re: Help on Django + Plotly integration

2023-03-24 Thread Jd Mehra

Create a view that will generate the Plotly chart. In the view, you can use 
the Plotly library to create a chart object and return it as an HTML div 
string. Here is an example view:

from django.shortcuts import render
import plotly.graph_objs as go
import plotly.offline as opy
from django.http import HttpResponse

def my_chart(request):
trace1 = go.Bar(x=[1, 2, 3], y=[4, 5, 6])
data = [trace1]
layout = go.Layout(title='My Chart')
fig = go.Figure(data=data, layout=layout)
div = opy.plot(fig, auto_open=False, output_type='div')
return HttpResponse(div)



On Thursday, 23 March 2023 at 20:20:57 UTC+5:30 Ryan Nowakowski wrote:

> Hey Kumar,
>
> "Not getting the end result" is pretty generic. Where are you stuck 
> specifically? Are there any error messages you're seeing? Have you tried 
> the browser's devtools to see if there are any errors there?
>
> - Ryan
>
>
> On March 23, 2023 6:47:19 AM CDT, Praveen Kumar  
> wrote:
>>
>> Hello Kasper,
>>
>> I have followed following link to get portly chart:
>>
>>
>> https://hackmamba.io/blog/2022/03/quickly-create-interactive-charts-in-django/
>>
>> But I'm not getting end result. Please find below the structure that I 
>> have made. Please let me know if I'm missing anything.
>>
>> [image: Screenshot 2023-03-23 154859.png]
>>
>> Kindly suggest.
>>
>> Thanks & Regards,
>> Praveen
>> On Wednesday, 22 March 2023 at 20:38:55 UTC+5:30 Kasper Laudrup wrote:
>>
>>> On 22/03/2023 15.29, Praveen Kumar wrote: 
>>> > Hi Team, 
>>> > 
>>> > I need help in implementing Plotly with Django for interactive 
>>> dashboards. 
>>> > 
>>> > Please suggest. 
>>> > 
>>>
>>> Try following this: 
>>>
>>> https://googlethatforyou.com?q=plotly%20django 
>>>
>>> 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, 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/21e8e33f-6105-4d0e-8e1d-3f13a0794294n%40googlegroups.com.


Re: Help in django. I want to upload files

2023-03-24 Thread Jd Mehra
yeah, Ryan's comment definitely makes sense

On Thursday, 23 March 2023 at 20:22:17 UTC+5:30 Ryan Nowakowski wrote:

> Your field is called e_resource with an underscore but you're trying to 
> reference it using a dash.
>
>
> On March 22, 2023 11:40:00 PM CDT, Shubhi Pandey  
> wrote:
>>
>> the error is:
>> django.core.exceptions.FieldError: Unknown field(s) (e-resource) 
>> specified for Post
>>
>> models.py
>> class Post(models.Model):
>> e_resource = models.FileField(null=True, 
>>blank=True, 
>>validators=[FileExtensionValidator( ['pdf'] ) 
>> ],upload_to='')
>>
>> views.py
>> def uploadResource_details(request,shop):
>> 
>>  shop = workshop_details.objects.get(w_id=shop)
>>  if request.method == 'POST':
>> form = PostForm(request.POST, request.FILES)
>> if form.is_valid():
>> cdform = form.cleaned_data
>> cdform.save()
>> return HttpResponse("File Uploaded successfully")
>>  else:
>> form = PostForm()
>>  return render(request, 'uploadAttendance.html', {'form': form,'shop' 
>> : shop})
>>
>> forms.py
>> class PostForm(forms.ModelForm):
>> class Meta:
>> model = Post
>> fields = ['e-resource']
>>
>>

-- 
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/4d3c352d-cb02-467f-b8df-82ba098ebde6n%40googlegroups.com.


Re: Help on Django + Plotly integration

2023-03-23 Thread Praveen Kumar
Hello Kasper,

I have followed following link to get portly chart:

https://hackmamba.io/blog/2022/03/quickly-create-interactive-charts-in-django/

But I'm not getting end result. Please find below the structure that I have 
made. Please let me know if I'm missing anything.

[image: Screenshot 2023-03-23 154859.png]

Kindly suggest.

Thanks & Regards,
Praveen
On Wednesday, 22 March 2023 at 20:38:55 UTC+5:30 Kasper Laudrup wrote:

> On 22/03/2023 15.29, Praveen Kumar wrote:
> > Hi Team,
> > 
> > I need help in implementing Plotly with Django for interactive 
> dashboards.
> > 
> > Please suggest.
> >
>
> Try following this:
>
> https://googlethatforyou.com?q=plotly%20django
>
> 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, 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/ce2cb442-378f-461a-b511-712db359b8b7n%40googlegroups.com.


Re: Help on Django + Plotly integration

2023-03-22 Thread 'Kasper Laudrup' via Django users

On 22/03/2023 15.29, Praveen Kumar wrote:

Hi Team,

I need help in implementing Plotly with Django for interactive dashboards.

Please suggest.



Try following this:

https://googlethatforyou.com?q=plotly%20django

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, 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/93cd0647-cf85-e209-07f0-580c72a84cc2%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
Hey,

I implement my needs not directly in oscar dashboard. I implement it my
views in my normal frontend views then make new Dashboard menu entry in
settings.py and from my view a button back to dashboard if i am staff
user...

Regards

Leslie Taffe  schrieb am Di., 22. Nov. 2022, 02:03:

> Hey I took a look at the sample project and I'm already familiar with it
> what I need is some more examples of how to add apps to the dashboard
> config file ive read the docs a lot I'm just not clear on how to implement
> it
>
> On Mon, Nov 21, 2022, 6:39 PM Sebastian Jung 
> wrote:
>
>> Hello Leslie,
>>
>> I am know many things in django oscar. Please ask if yoz have questions.
>>
>> Regards
>>
>> Leslie Taffe  schrieb am Di., 22. Nov. 2022, 00:30:
>>
>>> Hey so i'm a new dev looking into utilizing Oscar but a lot of things in
>>> the doc aren't clear to me if anyone would be willing to just show me an
>>> example project I'd be fine with just that
>>>
>>> --
>>> 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/2d42a7cd-78ef-45c6-8fe1-51cd82ae15ffn%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/GXUXULFRN9g/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CAKGT9mx-oxanD7_eHwyXeh34NbybetFEQTX1XAeu4CBwjh_rDg%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/CALaLdr%2BFdy5-DWza%2BBYJdxAStLz3Yy5cOgv%3Ds6OO5zuDbMPOqA%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/CAKGT9my6Ss85HiF91TGdXkL5zG9VhtxKvdGxtDqTGMXwTmwm2w%40mail.gmail.com.


Re: Help with understanding django-oscar

2022-11-21 Thread Leslie Taffe
Hey I took a look at the sample project and I'm already familiar with it
what I need is some more examples of how to add apps to the dashboard
config file ive read the docs a lot I'm just not clear on how to implement
it

On Mon, Nov 21, 2022, 6:39 PM Sebastian Jung 
wrote:

> Hello Leslie,
>
> I am know many things in django oscar. Please ask if yoz have questions.
>
> Regards
>
> Leslie Taffe  schrieb am Di., 22. Nov. 2022, 00:30:
>
>> Hey so i'm a new dev looking into utilizing Oscar but a lot of things in
>> the doc aren't clear to me if anyone would be willing to just show me an
>> example project I'd be fine with just that
>>
>> --
>> 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/2d42a7cd-78ef-45c6-8fe1-51cd82ae15ffn%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/GXUXULFRN9g/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAKGT9mx-oxanD7_eHwyXeh34NbybetFEQTX1XAeu4CBwjh_rDg%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/CALaLdr%2BFdy5-DWza%2BBYJdxAStLz3Yy5cOgv%3Ds6OO5zuDbMPOqA%40mail.gmail.com.


Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
Here are sanbox project with i have start

https://github.com/django-oscar/django-oscar/tree/master/sandbox

Good luck. On beginning absolut chaos because many things are not so as you
know. For example show in apps.py this is absokut different as i know with
urls.py. Or that models.py connects to Abstract model class and further
more...

But i think that many things are very good for examplke EAV implementation
in productclass where you can dynamicla create new attributes in
products... And much more. Impkementation of own payment method are not so
fine...

Ask when yoz have Detail questions

Regards

Leslie Taffe  schrieb am Di., 22. Nov. 2022, 00:30:

> Hey so i'm a new dev looking into utilizing Oscar but a lot of things in
> the doc aren't clear to me if anyone would be willing to just show me an
> example project I'd be fine with just that
>
> --
> 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/2d42a7cd-78ef-45c6-8fe1-51cd82ae15ffn%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/CAKGT9mz0bJ%3DGKZuro89WOXvVZauQ7ZMnLKZU%3DU%2BmCCNwnEa%2BnA%40mail.gmail.com.


Re: Help with understanding django-oscar

2022-11-21 Thread Sebastian Jung
Hello Leslie,

I am know many things in django oscar. Please ask if yoz have questions.

Regards

Leslie Taffe  schrieb am Di., 22. Nov. 2022, 00:30:

> Hey so i'm a new dev looking into utilizing Oscar but a lot of things in
> the doc aren't clear to me if anyone would be willing to just show me an
> example project I'd be fine with just that
>
> --
> 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/2d42a7cd-78ef-45c6-8fe1-51cd82ae15ffn%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/CAKGT9mx-oxanD7_eHwyXeh34NbybetFEQTX1XAeu4CBwjh_rDg%40mail.gmail.com.


Re: help for django project

2022-10-30 Thread 'Kasper Laudrup' via Django users

Change line 37 of your frobnicater.py file from using int to string.

Alternatively, if that doesn't work, consider asking a question that 
someone can actually answer.


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, 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/f439a5d6-17bb-0040-298a-9387117d91c5%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Help

2022-09-28 Thread Balogun Awwal
Can you send your number

On Wednesday, September 28, 2022, ASAMOAH EMMANUEL <
emmanuelasamoah...@gmail.com> wrote:

> Hi! I'm willing to help you. Message me privately for the resources.
>
> On Wed, Sep 28, 2022 at 1:02 AM Abdul Qoyyuum Haji Abdul Kadir <
> abdul.qoyy...@gmail.com> wrote:
>
>> That Udemy link is no longer valid.
>>
>> The Django official docs has a tutorial and is more relevant to the
>> latest version versus older YouTube videos.
>>
>> https://docs.djangoproject.com/en/4.1/
>>
>> Abdul Qoyyuum Bin Haji Abdul Kadir
>> HP: +673 720 8043
>> about.me/qoyyuum
>>
>> On Tue, Sep 27, 2022, 10:41 PM peteru mimo  wrote:
>>
>>> Good morning
>>>
>>> Check the https://www.udemy.com/course/draft/3427466/learn/
>>> lecture/21717840?start=15#overview is free on udemy
>>>
>>> Regard
>>>
>>> On Mon, Sep 26, 2022 at 9:11 PM Balogun Awwal 
>>> wrote:
>>>
 Hello I just learnt python I’m looking to learn django can you
 recommend some tutorials and it will also be very helpful if I can get a
 mentor also please

 Sent from awwal

 --
 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/CD4750AF-8818-422E-A96C-E193D6E5944A%40gmail.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/CAJBAA1%2Bcfj0vQGxX%2BKYpnnoKpFxmUQ6oW6d2WBsr-d15_
>>> Nu4PA%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/CANVqoJ9FKrtxDu3ViH11OGnfrFX%3Dq953UiONjTLZxAMvPJzc1g%
>> 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/CABFHQYxE8hGcQV7OB6UvW57bpnkny
> Q0O8x30aqcEWF6pqzmB7g%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/CAJ434RuGV5R6oVZ3H7FnDxpLxz3DgCcEqi8a%3Dtz8zOesw1V-SA%40mail.gmail.com.


Re: Help

2022-09-28 Thread ASAMOAH EMMANUEL
Hi! I'm willing to help you. Message me privately for the resources.

On Wed, Sep 28, 2022 at 1:02 AM Abdul Qoyyuum Haji Abdul Kadir <
abdul.qoyy...@gmail.com> wrote:

> That Udemy link is no longer valid.
>
> The Django official docs has a tutorial and is more relevant to the latest
> version versus older YouTube videos.
>
> https://docs.djangoproject.com/en/4.1/
>
> Abdul Qoyyuum Bin Haji Abdul Kadir
> HP: +673 720 8043
> about.me/qoyyuum
>
> On Tue, Sep 27, 2022, 10:41 PM peteru mimo  wrote:
>
>> Good morning
>>
>> Check the
>> https://www.udemy.com/course/draft/3427466/learn/lecture/21717840?start=15#overview
>> is free on udemy
>>
>> Regard
>>
>> On Mon, Sep 26, 2022 at 9:11 PM Balogun Awwal 
>> wrote:
>>
>>> Hello I just learnt python I’m looking to learn django can you recommend
>>> some tutorials and it will also be very helpful if I can get a mentor also
>>> please
>>>
>>> Sent from awwal
>>>
>>> --
>>> 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/CD4750AF-8818-422E-A96C-E193D6E5944A%40gmail.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/CAJBAA1%2Bcfj0vQGxX%2BKYpnnoKpFxmUQ6oW6d2WBsr-d15_Nu4PA%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/CANVqoJ9FKrtxDu3ViH11OGnfrFX%3Dq953UiONjTLZxAMvPJzc1g%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/CABFHQYxE8hGcQV7OB6UvW57bpnknyQ0O8x30aqcEWF6pqzmB7g%40mail.gmail.com.


Re: Help

2022-09-27 Thread Abdul Qoyyuum Haji Abdul Kadir
That Udemy link is no longer valid.

The Django official docs has a tutorial and is more relevant to the latest
version versus older YouTube videos.

https://docs.djangoproject.com/en/4.1/

Abdul Qoyyuum Bin Haji Abdul Kadir
HP: +673 720 8043
about.me/qoyyuum

On Tue, Sep 27, 2022, 10:41 PM peteru mimo  wrote:

> Good morning
>
> Check the
> https://www.udemy.com/course/draft/3427466/learn/lecture/21717840?start=15#overview
> is free on udemy
>
> Regard
>
> On Mon, Sep 26, 2022 at 9:11 PM Balogun Awwal 
> wrote:
>
>> Hello I just learnt python I’m looking to learn django can you recommend
>> some tutorials and it will also be very helpful if I can get a mentor also
>> please
>>
>> Sent from awwal
>>
>> --
>> 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/CD4750AF-8818-422E-A96C-E193D6E5944A%40gmail.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/CAJBAA1%2Bcfj0vQGxX%2BKYpnnoKpFxmUQ6oW6d2WBsr-d15_Nu4PA%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/CANVqoJ9FKrtxDu3ViH11OGnfrFX%3Dq953UiONjTLZxAMvPJzc1g%40mail.gmail.com.


Re: Help

2022-09-27 Thread peteru mimo
https://freetutsdownload.com/?s=django download free django tutorial here
also

On Tue, Sep 27, 2022 at 11:33 AM peteru mimo  wrote:

> Good morning
>
> Check the
> https://www.udemy.com/course/draft/3427466/learn/lecture/21717840?start=15#overview
> is free on udemy
>
> Regard
>
> On Mon, Sep 26, 2022 at 9:11 PM Balogun Awwal 
> wrote:
>
>> Hello I just learnt python I’m looking to learn django can you recommend
>> some tutorials and it will also be very helpful if I can get a mentor also
>> please
>>
>> Sent from awwal
>>
>> --
>> 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/CD4750AF-8818-422E-A96C-E193D6E5944A%40gmail.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/CAJBAA1L9s4g_M_LwOLfJtVqNpAa2fGKfZo91UPWMX%2BJTUafT1Q%40mail.gmail.com.


Re: Help

2022-09-27 Thread peteru mimo
Good morning

Check the
https://www.udemy.com/course/draft/3427466/learn/lecture/21717840?start=15#overview
is free on udemy

Regard

On Mon, Sep 26, 2022 at 9:11 PM Balogun Awwal 
wrote:

> Hello I just learnt python I’m looking to learn django can you recommend
> some tutorials and it will also be very helpful if I can get a mentor also
> please
>
> Sent from awwal
>
> --
> 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/CD4750AF-8818-422E-A96C-E193D6E5944A%40gmail.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/CAJBAA1%2Bcfj0vQGxX%2BKYpnnoKpFxmUQ6oW6d2WBsr-d15_Nu4PA%40mail.gmail.com.


Re: Help

2022-09-27 Thread Maitrey. Thakar.
Hii there see the code with Harry tutorial it will help you  it's in two 
languages Hindi and and i think English... 

On Tuesday, September 27, 2022 at 1:41:27 AM UTC+5:30 awwalba...@gmail.com 
wrote:

> Hello I just learnt python I’m looking to learn django can you recommend 
> some tutorials and it will also be very helpful if I can get a mentor also 
> please 
>
> Sent from awwal

-- 
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/dc541977-148f-44fa-9503-060b9790fbb4n%40googlegroups.com.


Re: Help

2022-09-27 Thread Sonu
You can learn Django.
Click the below link

https://www.youtube.com/c/CodeKeen/playlists

On Tue, 27 Sept 2022 at 01:41, Balogun Awwal 
wrote:

> Hello I just learnt python I’m looking to learn django can you recommend
> some tutorials and it will also be very helpful if I can get a mentor also
> please
>
> Sent from awwal
>
> --
> 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/CD4750AF-8818-422E-A96C-E193D6E5944A%40gmail.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/CACM95a59CjmD1aJyE23uNwB2GxFc%2B9iPDpSAkPMHaFhVp3LFOw%40mail.gmail.com.


Re: help on how to deploy django app on railway "

2022-09-15 Thread ola neat
they app is almost complete, i'm only migrating from heroku to railway, it
not new app

On Thu, Sep 15, 2022 at 10:04 PM Percy Masekwameng <
percymasekwameng...@gmail.com> wrote:

> Hi I don't know much about deploying, I'm still a newbie
>
> There is an option to deploy a template, use it to deploy a Django template
>
> So normally I'd deploy a Django template which railway also create a
> repository(if you linked your Github), Postgresql database for that
> template and so clone the repo to your machine and start working on the
> repo.
>
> Make sure you install railway CLI on your computer
>
> so you will need to login on CLI using
>
> "railway login --browserless'
>
> Link your production environment
>
> "railway link" and select the environment
>
> use "railway run " to run django commands
>
> Like
> railway run python manage.py runserver
>
> On Thu, 15 Sep 2022, 22:32 ola neat,  wrote:
>
>> hallo guys,
>> so i'm having issue deploying my django on railway but once the
>> deployment is complete the app crash with this err
>>
>>
>> raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
>> django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
>> improperly configured. Please supply the ENGINE value. Check settings
>> documentation for more details.
>>
>>
>> and below is my django settings and railway setting
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.postgresql',
>> 'HOST': os.environ.get('PGHOST'),
>> 'NAME': os.environ.get('PGDATABASE'),
>> 'USERNAME': os.environ.get('PGUSER'),
>> 'PASSWORD': os.environ.get('PGPASSWORD'),
>> 'PORT':os.environ.get('PGPORT')
>> }
>> }
>>
>>
>> [image: image.png]
>>
>> --
>> 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/CAHLKn72hHAj7Dfhf%2BPiYsd1Lkv0XRsMcJC%3DRbHBbWq7ackmuTw%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/CANfc-pB2hfy3CxXcAsMLdK2Eu94tEc-ANVng7jG61a%3DfAFnR-g%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/CAHLKn72HN%3DKcZ9DPDkmk6i3dN1vskothatnMgq1a6GSwXHFpNQ%40mail.gmail.com.


Re: help on how to deploy django app on railway "

2022-09-15 Thread ola neat
that wat i did before and it still giving me same error, i had to comment
it out

DATABASES = {
"default": dj_database_url.config(default=DATABASE_URL, conn_max_age=1800),
}


On Thu, Sep 15, 2022 at 9:55 PM Mohammad Anarul 
wrote:

> You can follow the github repo
> https://github.com/mohammadanarul/railway-action.git
>
> On Fri, Sep 16, 2022, 2:32 AM ola neat  wrote:
>
>> hallo guys,
>> so i'm having issue deploying my django on railway but once the
>> deployment is complete the app crash with this err
>>
>>
>> raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
>> django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
>> improperly configured. Please supply the ENGINE value. Check settings
>> documentation for more details.
>>
>>
>> and below is my django settings and railway setting
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.postgresql',
>> 'HOST': os.environ.get('PGHOST'),
>> 'NAME': os.environ.get('PGDATABASE'),
>> 'USERNAME': os.environ.get('PGUSER'),
>> 'PASSWORD': os.environ.get('PGPASSWORD'),
>> 'PORT':os.environ.get('PGPORT')
>> }
>> }
>>
>>
>> [image: image.png]
>>
>> --
>> 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/CAHLKn72hHAj7Dfhf%2BPiYsd1Lkv0XRsMcJC%3DRbHBbWq7ackmuTw%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/CAE59x8fecMFmdb6qzReK77fUkEnE9eDk0cTxvZO%3DZypicFksJA%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/CAHLKn70Bn-4K9tqtEAcyCfKjq%2BO8Ec3TA0BCGPJ%3DJs7WeveixQ%40mail.gmail.com.


Re: help on how to deploy django app on railway "

2022-09-15 Thread Percy Masekwameng
Hi I don't know much about deploying, I'm still a newbie

There is an option to deploy a template, use it to deploy a Django template

So normally I'd deploy a Django template which railway also create a
repository(if you linked your Github), Postgresql database for that
template and so clone the repo to your machine and start working on the
repo.

Make sure you install railway CLI on your computer

so you will need to login on CLI using

"railway login --browserless'

Link your production environment

"railway link" and select the environment

use "railway run " to run django commands

Like
railway run python manage.py runserver

On Thu, 15 Sep 2022, 22:32 ola neat,  wrote:

> hallo guys,
> so i'm having issue deploying my django on railway but once the deployment
> is complete the app crash with this err
>
>
> raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
> django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
> improperly configured. Please supply the ENGINE value. Check settings
> documentation for more details.
>
>
> and below is my django settings and railway setting
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.postgresql',
> 'HOST': os.environ.get('PGHOST'),
> 'NAME': os.environ.get('PGDATABASE'),
> 'USERNAME': os.environ.get('PGUSER'),
> 'PASSWORD': os.environ.get('PGPASSWORD'),
> 'PORT':os.environ.get('PGPORT')
> }
> }
>
>
> [image: image.png]
>
> --
> 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/CAHLKn72hHAj7Dfhf%2BPiYsd1Lkv0XRsMcJC%3DRbHBbWq7ackmuTw%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/CANfc-pB2hfy3CxXcAsMLdK2Eu94tEc-ANVng7jG61a%3DfAFnR-g%40mail.gmail.com.


Re: help on how to deploy django app on railway "

2022-09-15 Thread Mohammad Anarul
You can follow the github repo
https://github.com/mohammadanarul/railway-action.git

On Fri, Sep 16, 2022, 2:32 AM ola neat  wrote:

> hallo guys,
> so i'm having issue deploying my django on railway but once the deployment
> is complete the app crash with this err
>
>
> raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
> django.core.exceptions.ImproperlyConfigured: settings.DATABASES is
> improperly configured. Please supply the ENGINE value. Check settings
> documentation for more details.
>
>
> and below is my django settings and railway setting
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.postgresql',
> 'HOST': os.environ.get('PGHOST'),
> 'NAME': os.environ.get('PGDATABASE'),
> 'USERNAME': os.environ.get('PGUSER'),
> 'PASSWORD': os.environ.get('PGPASSWORD'),
> 'PORT':os.environ.get('PGPORT')
> }
> }
>
>
> [image: image.png]
>
> --
> 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/CAHLKn72hHAj7Dfhf%2BPiYsd1Lkv0XRsMcJC%3DRbHBbWq7ackmuTw%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/CAE59x8fecMFmdb6qzReK77fUkEnE9eDk0cTxvZO%3DZypicFksJA%40mail.gmail.com.


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-14 Thread 'Kasper Laudrup' via Django users
On 13/08/2022 09.04, Dieu merci Dramani wrote:
> This work :
> productId:  1 action:  add
> cart.js:9 USER: setraco
> cart.js:20 setraco is logged in ! Sending data ...
> 
> cart.js:22
> Here is the errors that I'm trying without success:
> POST http://127.0.0.1:8000/update_Item/  
> 403 (Forbidden)
> updateUserOrder @ cart.js:22
> (anonymous) @ cart.js:14
> 
> VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "
>  Promise.then (async)
> updateUserOrder @ cart.js:33
> (anonymous) @ cart.js:14
> 

Most likely your updateItems functions raises and exception causing an HTTP 403 
response. The error page is then being rendered as HTML by Django which causes 
your Javascript code to fail when trying to parse it as JSON.

You should most likely be able to find the root cause of the exception in your 
log files or the output of your developer console so you known how to fix it. I 
would guess something related to access rights on your database or similar but 
the log should provide that information.

You should also consider a way of returning JSON instead of HTML when returning 
errors to the client based on the clients "Accept" header. I'm sure there's 
some generic way to do that but I haven't looked into it.

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, 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/1D8C5AC7-1367-4B02-B908-6D5D2D8D8618%40stacktrace.dk.


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-14 Thread 'Kasper Laudrup' via Django users
On 13/08/2022 09.04, Dieu merci Dramani wrote:
> This work :
> productId:  1 action:  add
> cart.js:9 USER: setraco
> cart.js:20 setraco is logged in ! Sending data ...
> 
> cart.js:22
> Here is the errors that I'm trying without success:
> POST http://127.0.0.1:8000/update_Item/  
> 403 (Forbidden)
> updateUserOrder @ cart.js:22
> (anonymous) @ cart.js:14
> 
> VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "
>  Promise.then (async)
> updateUserOrder @ cart.js:33
> (anonymous) @ cart.js:14
> 

Most likely your updateItems functions raises and exception causing an HTTP 403 
response. The error page is then being rendered as HTML by Django which causes 
your Javascript code to fail when trying to parse it as JSON.

You should most likely be able to find the root cause of the exception in your 
log files or the output of your developer console so you known how to fix it. I 
would guess something related to access rights on your database or similar but 
the log should provide that information.

You should also consider a way of returning JSON instead of HTML when returning 
errors to the client based on the clients "Accept" header. I'm sure there's 
some generic way to do that but I haven't looked into it.

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, 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/6AE4A623-271C-4649-80DD-A04FEF7AAD28%40stacktrace.dk.


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread 'Kasper Laudrup' via Django users

On 13/08/2022 09.04, Dieu merci Dramani wrote:

This work :
productId:  1 action:  add
cart.js:9 USER: setraco
cart.js:20 setraco is logged in ! Sending data ...

cart.js:22
Here is the errors that I'm trying without success:
POST http://127.0.0.1:8000/update_Item/ 
 403 (Forbidden)

updateUserOrder @ cart.js:22
(anonymous) @ cart.js:14

VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "


Most likely your updateItems functions raises and exception causing an 
HTTP 403 response. The error page is then being rendered as HTML by 
Django which causes your Javascript code to fail when trying to parse it 
as JSON.


You should most likely be able to find the root cause of the exception 
in your log files or the output of your developer console so you known 
how to fix it. I would guess something related to access rights on your 
database or similar but the log should provide that information.


You should also consider a way of returning JSON instead of HTML when 
returning errors to the client based on the clients "Accept" header. I'm 
sure there's some generic way to do that but I haven't looked into it.


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, 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/641469d8-bd7e-7aee-1a03-ed3155c47ecd%40stacktrace.dk.


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread 'Kasper Laudrup' via Django users

On 13/08/2022 09.04, Dieu merci Dramani wrote:

This work :
productId:  1 action:  add
cart.js:9 USER: setraco
cart.js:20 setraco is logged in ! Sending data ...

cart.js:22
Here is the errors that I'm trying without success:
POST http://127.0.0.1:8000/update_Item/ 
 403 (Forbidden)

updateUserOrder @ cart.js:22
(anonymous) @ cart.js:14

VM29:2 Uncaught (in promise) SyntaxError: Unexpected token '<', "


Most likely your updateItems functions raises and exception causing an 
HTTP 403 response. The error page is then being rendered as HTML by 
Django which causes your Javascript code to fail when trying to parse it 
as JSON.


You should most likely be able to find the root cause of the exception 
in your log files or the output of your developer console so you known 
how to fix it. I would guess something related to access rights on your 
database or similar but the log should provide that information.


You should also consider a way of returning JSON instead of HTML when 
returning errors to the client based on the clients "Accept" header. I'm 
sure there's some generic way to do that but I haven't looked into it.


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, 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/8e25f737-2114-fe2a-b0e1-aafc7fa742f2%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread 'tomo yamano' via Django users

It seems that the error message you shared indicates the syntax error , tho.On Aug 13, 2022, at 4:05 PM, Dieu merci Dramani  wrote:This work :productId:  1 action:  addcart.js:9 USER: setracocart.js:20 setraco is logged 
in ! Sending data ...cart.js:22        Here is the errors that I'm trying without success:  POST http://127.0.0.1:8000/update_Item/ 403 (Forbidden)updateUserOrder @ cart.js:22(anonymous) @ cart.js:14VM29:2 Uncaught (in promise) SyntaxError: Unexpected 
token '<', " {return response.json()})   
 .then((data) => {console.log('data: ', data)location.reloads()})}html side update button : Ajouter au Panierviews.py side :def updateItems(request):data = json.loads(request.body)productId = data['productId']action = data['action']print('Action: ', action)print('Product Id: ', 
productId)customer = request.user.customerproduct = Product.objects.get(id=productId)order, created = Order.objects.get_or_create(customer=customer, complete=False)orderItem, created = OrderItem.objects.get_or_create(order=order, 
product=product)if action == 'add':orderItem.quantity = (orderItem.quantity + 1)elif action == 'remove':orderItem.quantity = (orderItem.quantity - 1)orderItem.save()if orderItem.quantity <= 0:orderItem.delete()   
 return JsonResponse('Item was updated', safe=False)urls :from django.urls import pathfrom . import viewsfrom django.conf.urls.static import *urlpatterns = [#path('admin/', admin.site.urls),path('', views.store, name="store"),
path('cart/', views.cart, name="cart"),path('checkout/', views.checkout, name="checkout"),path('update_Item/', views.updateItems, name="update_Item"),]Thanks for your 
help.dieumercidramani@gmail.comdramspy...@gmail.com +243 82 83 010 21-- 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/CADDd42bBDg78Pu7YbLpKRWrRjyuwkoY0NBnx3%3DX%3Dt-Tt5Od%2B7w%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/8d6a6e01-f468-4cbc-9fb0-c257e0643ec3%40me.com.


Re: Help to implement custome user login

2022-08-09 Thread Samuel Alie Mansaray
How to add apps in django new version?

On Fri, 5 Aug 2022, 20:00 vijay chourey,  wrote:

> Even you can extend your user modle and can store your extra fields and
> OTP verification field. It's posible to change your email to phone based
> login.
>
> On Fri, 5 Aug, 2022, 7:29 pm Rinki Prasad,  wrote:
>
>> Hi team ,
>> Actually i want to implement custom model in Django Like i want that the
>> user should not register.Directly i want that he should login through
>> mobile and otp  instead of username and password, and the same data should
>> be store in database so how can i do this with django?Actually i have tried
>> a lot but still not able to change the fields of username and password of
>> djangol auth_model to mobile
>>
>> --
>> 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/9a853e26-6190-46b8-8c9c-1de2452175d9n%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/CAD54TfxT8ESwM42%3DvPBFXVuHm7RbxV0fD%3Dpyxrao6TOKXsqGBA%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/CAAEwWnzKQLDOiWSZMVov%2BLuSvy_b-S6ykkvxNKJYngbsjC71Cg%40mail.gmail.com.


Re: Help to implement custome user login

2022-08-05 Thread vijay chourey
Even you can extend your user modle and can store your extra fields and OTP
verification field. It's posible to change your email to phone based login.

On Fri, 5 Aug, 2022, 7:29 pm Rinki Prasad,  wrote:

> Hi team ,
> Actually i want to implement custom model in Django Like i want that the
> user should not register.Directly i want that he should login through
> mobile and otp  instead of username and password, and the same data should
> be store in database so how can i do this with django?Actually i have tried
> a lot but still not able to change the fields of username and password of
> djangol auth_model to mobile
>
> --
> 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/9a853e26-6190-46b8-8c9c-1de2452175d9n%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/CAD54TfxT8ESwM42%3DvPBFXVuHm7RbxV0fD%3Dpyxrao6TOKXsqGBA%40mail.gmail.com.


Re: Help to implement custome user login

2022-08-05 Thread Lakshyaraj Dash
You can have this awesome course by codewithharry:
https://youtube.com/playlist?list=PLu0W_9lII9ah7DDtYtflgwMwpT3xmjXY9

On Fri, 5 Aug, 2022, 22:16 Bhoopesh sisoudiya,  wrote:

> Hey,
>
> No needs to go in any whatsapp group or wasting time because time is very
> important.
> This group have sufficient resources for helping each other.
>
> If you want master in any framework go on original site and read document
> carefully if you don't have basic knowledge then purchase a course from any
> course site.
>
> In previous mail exact solution provided by
> Lakshyaraj as you need.
>
> I have already done this multiple time.
>
> Thanks
> Bhoopesh Sisoudiya
>
>
> On Fri, 5 Aug, 2022, 9:36 pm Lakshyaraj Dash, <
> dashlakshyaraj2...@gmail.com> wrote:
>
>> Hey you... Instead of helping that guy, you're just creating a monopoly.
>> You want that everyone would ask questions in your group, then why this
>> Google groups has been created by django???
>>
>> On Fri, Aug 5, 2022, 21:12 Satyajit Barik 
>> wrote:
>>
>>> Hey,
>>>
>>> Join in Whatsapp python group to solve your problem using the below link:
>>>
>>> https://chat.whatsapp.com/Bq2jcxLJVG50v9Wbkvz6Vy
>>>
>>> [Membership benefits] Here are some great perks you get for becoming a
>>> member:
>>> * Ask your python & django related problems: get quick possible answer.
>>> * Friendly environment: you can learn python & django from core.
>>> * Daily Python Assignment exercise.
>>>
>>> On Fri, Aug 5, 2022 at 7:48 PM Lakshyaraj Dash <
>>> dashlakshyaraj2...@gmail.com> wrote:
>>>
 You can add fields to the default django user model by using the
 AbstractUser class from django.contrib.auth.models, you can't change the
 default fields. Rather you'll need to write your custom user model
 containing OTP and mobile number instead of username or password.

 On Fri, Aug 5, 2022, 19:29 Rinki Prasad  wrote:

> Hi team ,
> Actually i want to implement custom model in Django Like i want that
> the user should not register.Directly i want that he should login through
> mobile and otp  instead of username and password, and the same data should
> be store in database so how can i do this with django?Actually i have 
> tried
> a lot but still not able to change the fields of username and password of
> djangol auth_model to mobile
>
> --
> 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/9a853e26-6190-46b8-8c9c-1de2452175d9n%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/CAF7qQgCHnu1eLdb6fDp2A%2B4OMCb%3DrT78pbM0aeP0V7JYOxR37w%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/CANd-%2BoCRLwa1iRnagBupzx%2BCy5E_xDncc2Df8saryXUu%3DjX6XQ%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/CAF7qQgBeVHFXDHK4i5SFAUTd1G55AjnN3bW0EHr5tuCYjTfGsw%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
> 

Re: Help to implement custome user login

2022-08-05 Thread Bhoopesh sisoudiya
Hey,

No needs to go in any whatsapp group or wasting time because time is very
important.
This group have sufficient resources for helping each other.

If you want master in any framework go on original site and read document
carefully if you don't have basic knowledge then purchase a course from any
course site.

In previous mail exact solution provided by
Lakshyaraj as you need.

I have already done this multiple time.

Thanks
Bhoopesh Sisoudiya


On Fri, 5 Aug, 2022, 9:36 pm Lakshyaraj Dash, 
wrote:

> Hey you... Instead of helping that guy, you're just creating a monopoly.
> You want that everyone would ask questions in your group, then why this
> Google groups has been created by django???
>
> On Fri, Aug 5, 2022, 21:12 Satyajit Barik 
> wrote:
>
>> Hey,
>>
>> Join in Whatsapp python group to solve your problem using the below link:
>>
>> https://chat.whatsapp.com/Bq2jcxLJVG50v9Wbkvz6Vy
>>
>> [Membership benefits] Here are some great perks you get for becoming a
>> member:
>> * Ask your python & django related problems: get quick possible answer.
>> * Friendly environment: you can learn python & django from core.
>> * Daily Python Assignment exercise.
>>
>> On Fri, Aug 5, 2022 at 7:48 PM Lakshyaraj Dash <
>> dashlakshyaraj2...@gmail.com> wrote:
>>
>>> You can add fields to the default django user model by using the
>>> AbstractUser class from django.contrib.auth.models, you can't change the
>>> default fields. Rather you'll need to write your custom user model
>>> containing OTP and mobile number instead of username or password.
>>>
>>> On Fri, Aug 5, 2022, 19:29 Rinki Prasad  wrote:
>>>
 Hi team ,
 Actually i want to implement custom model in Django Like i want that
 the user should not register.Directly i want that he should login through
 mobile and otp  instead of username and password, and the same data should
 be store in database so how can i do this with django?Actually i have tried
 a lot but still not able to change the fields of username and password of
 djangol auth_model to mobile

 --
 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/9a853e26-6190-46b8-8c9c-1de2452175d9n%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/CAF7qQgCHnu1eLdb6fDp2A%2B4OMCb%3DrT78pbM0aeP0V7JYOxR37w%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/CANd-%2BoCRLwa1iRnagBupzx%2BCy5E_xDncc2Df8saryXUu%3DjX6XQ%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/CAF7qQgBeVHFXDHK4i5SFAUTd1G55AjnN3bW0EHr5tuCYjTfGsw%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/CAAk3c1PLSC%3DZw6bWqNS%3D0%2BPLzsHHnFLuBUyMwnn0RGBm6%2BJ6fg%40mail.gmail.com.


Re: Help to implement custome user login

2022-08-05 Thread Lakshyaraj Dash
Hey you... Instead of helping that guy, you're just creating a monopoly.
You want that everyone would ask questions in your group, then why this
Google groups has been created by django???

On Fri, Aug 5, 2022, 21:12 Satyajit Barik 
wrote:

> Hey,
>
> Join in Whatsapp python group to solve your problem using the below link:
>
> https://chat.whatsapp.com/Bq2jcxLJVG50v9Wbkvz6Vy
>
> [Membership benefits] Here are some great perks you get for becoming a
> member:
> * Ask your python & django related problems: get quick possible answer.
> * Friendly environment: you can learn python & django from core.
> * Daily Python Assignment exercise.
>
> On Fri, Aug 5, 2022 at 7:48 PM Lakshyaraj Dash <
> dashlakshyaraj2...@gmail.com> wrote:
>
>> You can add fields to the default django user model by using the
>> AbstractUser class from django.contrib.auth.models, you can't change the
>> default fields. Rather you'll need to write your custom user model
>> containing OTP and mobile number instead of username or password.
>>
>> On Fri, Aug 5, 2022, 19:29 Rinki Prasad  wrote:
>>
>>> Hi team ,
>>> Actually i want to implement custom model in Django Like i want that the
>>> user should not register.Directly i want that he should login through
>>> mobile and otp  instead of username and password, and the same data should
>>> be store in database so how can i do this with django?Actually i have tried
>>> a lot but still not able to change the fields of username and password of
>>> djangol auth_model to mobile
>>>
>>> --
>>> 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/9a853e26-6190-46b8-8c9c-1de2452175d9n%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/CAF7qQgCHnu1eLdb6fDp2A%2B4OMCb%3DrT78pbM0aeP0V7JYOxR37w%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/CANd-%2BoCRLwa1iRnagBupzx%2BCy5E_xDncc2Df8saryXUu%3DjX6XQ%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/CAF7qQgBeVHFXDHK4i5SFAUTd1G55AjnN3bW0EHr5tuCYjTfGsw%40mail.gmail.com.


Re: Help to implement custome user login

2022-08-05 Thread Satyajit Barik
Hey,

Join in Whatsapp python group to solve your problem using the below link:

https://chat.whatsapp.com/Bq2jcxLJVG50v9Wbkvz6Vy

[Membership benefits] Here are some great perks you get for becoming a
member:
* Ask your python & django related problems: get quick possible answer.
* Friendly environment: you can learn python & django from core.
* Daily Python Assignment exercise.

On Fri, Aug 5, 2022 at 7:48 PM Lakshyaraj Dash 
wrote:

> You can add fields to the default django user model by using the
> AbstractUser class from django.contrib.auth.models, you can't change the
> default fields. Rather you'll need to write your custom user model
> containing OTP and mobile number instead of username or password.
>
> On Fri, Aug 5, 2022, 19:29 Rinki Prasad  wrote:
>
>> Hi team ,
>> Actually i want to implement custom model in Django Like i want that the
>> user should not register.Directly i want that he should login through
>> mobile and otp  instead of username and password, and the same data should
>> be store in database so how can i do this with django?Actually i have tried
>> a lot but still not able to change the fields of username and password of
>> djangol auth_model to mobile
>>
>> --
>> 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/9a853e26-6190-46b8-8c9c-1de2452175d9n%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/CAF7qQgCHnu1eLdb6fDp2A%2B4OMCb%3DrT78pbM0aeP0V7JYOxR37w%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/CANd-%2BoCRLwa1iRnagBupzx%2BCy5E_xDncc2Df8saryXUu%3DjX6XQ%40mail.gmail.com.


Re: Help to implement custome user login

2022-08-05 Thread Lakshyaraj Dash
You can add fields to the default django user model by using the
AbstractUser class from django.contrib.auth.models, you can't change the
default fields. Rather you'll need to write your custom user model
containing OTP and mobile number instead of username or password.

On Fri, Aug 5, 2022, 19:29 Rinki Prasad  wrote:

> Hi team ,
> Actually i want to implement custom model in Django Like i want that the
> user should not register.Directly i want that he should login through
> mobile and otp  instead of username and password, and the same data should
> be store in database so how can i do this with django?Actually i have tried
> a lot but still not able to change the fields of username and password of
> djangol auth_model to mobile
>
> --
> 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/9a853e26-6190-46b8-8c9c-1de2452175d9n%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/CAF7qQgCHnu1eLdb6fDp2A%2B4OMCb%3DrT78pbM0aeP0V7JYOxR37w%40mail.gmail.com.


Re: Help to implement join query in django orm

2022-07-25 Thread 'Amitesh Sahay' via Django users
10. How to perform join operations in django ORM? — Django ORM Cookbook 2.0 
documentation (agiliq.com)



Try this 

On Monday, 25 July, 2022 at 01:18:44 pm IST, Mihir Patel 
 wrote:  
 
 is anyone having login issue? , i am unable to authenticate a user in my 
website
On Sun, Jul 24, 2022 at 10:37 PM Jitendra kumar Patra 
 wrote:

Ping me 7008080545
On Fri, 22 Jul, 2022, 12:16 Avi shah,  wrote:

I have two tables Tbl 1 & Tbl 2 
I need to connect the two tables using a join 

Thanks and regards, Avi shah 

-- 
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/CALa7AFNmoep5MT3MwoYn1ZF0S%3DENPUdVAO-_3EmVyAzCub_Jkg%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/CAOAROf%3DgMPbSQ37f81A0rpRr7NgiUFF8ZyTsF8bZ-KG9Sgh%3DkA%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/CAC10kRFL%3D1a6T0-DG%3DZTsBugJa2_iFf-itHjSwAc9-2vHOnB7g%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/1973455060.1368718.1658735565276%40mail.yahoo.com.


Re: Help to implement join query in django orm

2022-07-25 Thread Mihir Patel
is anyone having login issue? , i am unable to authenticate a user in my
website

On Sun, Jul 24, 2022 at 10:37 PM Jitendra kumar Patra <
jitendrapatra...@gmail.com> wrote:

> Ping me 7008080545
>
> On Fri, 22 Jul, 2022, 12:16 Avi shah,  wrote:
>
>> I have two tables
>> Tbl 1
>> &
>> Tbl 2
>>
>> I need to connect the two tables using a join
>>
>>
>> Thanks and regards,
>> Avi shah
>>
>> --
>> 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/CALa7AFNmoep5MT3MwoYn1ZF0S%3DENPUdVAO-_3EmVyAzCub_Jkg%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/CAOAROf%3DgMPbSQ37f81A0rpRr7NgiUFF8ZyTsF8bZ-KG9Sgh%3DkA%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/CAC10kRFL%3D1a6T0-DG%3DZTsBugJa2_iFf-itHjSwAc9-2vHOnB7g%40mail.gmail.com.


Re: Help to implement join query in django orm

2022-07-24 Thread Jitendra kumar Patra
Ping me 7008080545

On Fri, 22 Jul, 2022, 12:16 Avi shah,  wrote:

> I have two tables
> Tbl 1
> &
> Tbl 2
>
> I need to connect the two tables using a join
>
>
> Thanks and regards,
> Avi shah
>
> --
> 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/CALa7AFNmoep5MT3MwoYn1ZF0S%3DENPUdVAO-_3EmVyAzCub_Jkg%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/CAOAROf%3DgMPbSQ37f81A0rpRr7NgiUFF8ZyTsF8bZ-KG9Sgh%3DkA%40mail.gmail.com.


Re: Help to implement join query in django orm

2022-07-24 Thread Abhishek Gupta
Hey, you have to write custom raw query for join tables which are not
connected with foreign key relationship in django.

On Sun, Jul 24, 2022, 11:17 Lalit Suthar  wrote:

> this can be helpful
>
> https://betterprogramming.pub/django-select-related-and-prefetch-related-f23043fd635d
>
> On Sun, 24 Jul 2022 at 00:30, Ryan Nowakowski  wrote:
>
>> On Fri, Jul 22, 2022 at 12:16:14PM +0530, Avi shah wrote:
>> > I have two tables
>> > Tbl 1
>> > &
>> > Tbl 2
>> >
>> > I need to connect the two tables using a join
>>
>> If these tables were created outside of Django, in other words, not
>> using manage.py migrate, you can use Django's legacy database support to
>> auto generate the models[1].  After that, each table will have a model
>> associated with it.  You can then use Django's ForeignKey support to query
>> the tables.
>>
>>
>> [1] https://docs.djangoproject.com/en/4.0/howto/legacy-databases/
>>
>>
>> --
>> 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/20220723185935.GB15838%40fattuba.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/CAGp2JVHauj%2BS47HfmcYOrNQHJk3bTQbtdBm%3DdLRNx_8woM6XwQ%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/CABwiCvrSuY6AmBkARJFt%2BaCeR_wFVGf%3DKWdLP227GApDW4AcWQ%40mail.gmail.com.


Re: Help to implement join query in django orm

2022-07-23 Thread Lalit Suthar
this can be helpful
https://betterprogramming.pub/django-select-related-and-prefetch-related-f23043fd635d

On Sun, 24 Jul 2022 at 00:30, Ryan Nowakowski  wrote:

> On Fri, Jul 22, 2022 at 12:16:14PM +0530, Avi shah wrote:
> > I have two tables
> > Tbl 1
> > &
> > Tbl 2
> >
> > I need to connect the two tables using a join
>
> If these tables were created outside of Django, in other words, not
> using manage.py migrate, you can use Django's legacy database support to
> auto generate the models[1].  After that, each table will have a model
> associated with it.  You can then use Django's ForeignKey support to query
> the tables.
>
>
> [1] https://docs.djangoproject.com/en/4.0/howto/legacy-databases/
>
>
> --
> 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/20220723185935.GB15838%40fattuba.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/CAGp2JVHauj%2BS47HfmcYOrNQHJk3bTQbtdBm%3DdLRNx_8woM6XwQ%40mail.gmail.com.


Re: Help to implement join query in django orm

2022-07-23 Thread Ryan Nowakowski
On Fri, Jul 22, 2022 at 12:16:14PM +0530, Avi shah wrote:
> I have two tables
> Tbl 1
> &
> Tbl 2
> 
> I need to connect the two tables using a join

If these tables were created outside of Django, in other words, not
using manage.py migrate, you can use Django's legacy database support to
auto generate the models[1].  After that, each table will have a model
associated with it.  You can then use Django's ForeignKey support to query
the tables.


[1] https://docs.djangoproject.com/en/4.0/howto/legacy-databases/
 

-- 
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/20220723185935.GB15838%40fattuba.com.


Re: HELP ON SETUP HEROKU ON CLOUDINARY FREE ACCOUNT

2022-07-03 Thread DJANGO DEVELOPER
following

On Sun, Jul 3, 2022 at 3:21 AM ola neat  wrote:

> hello guys,
> i've got a project i deployed on heroku and i'm using cloudinary to
> handle  image upload, which is working perfectly offline but the issue is
> once i try it online i get this err
> ```
>
> ValueError at /profile/247de095-6895-4bff-a836-dedfa75cde4b/update
>
> Must supply api_key
> ```
>
> and i have add heroku key & url to my heroku config variable using `heroku 
> config:set CLOUDINARY_API_KEY='api_key' ` but still i'm still hgetting err, 
> can anyone help ont
>
> --
> 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/CAHLKn71pdwojCuLaLJ%3DKt%3DXHsE38TTyKhRvuFozaqxSNfY3jPQ%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/CAKPY9pkfSrePeyswxp8MdxBjPAR1MNyPhzxO_hpYqvyC_%2Bdeow%40mail.gmail.com.


Re: Help please,

2022-05-06 Thread John McClain
connect it using your git! place the keys in your file. remember to remove
the keys when publishing to get or you will share them with the world. If
you are reading KT and still not connecting it is because you have skipped
a step. Follow your tutorial fully and it should be a very easy task (one
of the easiest task you'll have)

On Fri, 6 May 2022 at 12:03, Dexterr Jay  wrote:

> How do I make my domain be like
> https://my domain.herokuapp.com/mainapp/ when I open my Django app hosted
> on heroku
>
> --
> 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/CAC32MkgXb34CcinJ9gTx6MPUcO-beqoutw3%3DeUPK4PeGtyBb9g%40mail.gmail.com
> 
> .
>


-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@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/CAN-hv_pTjK0y9HQZtg1dY3vvVrPo-kpkv053ni7Mr%2BaQtPXhTg%40mail.gmail.com.


Re: Help! I begginer...

2022-04-29 Thread Derek
You may need to update the version of Django you're running; the current 
source code 
(https://github.com/django/django/blob/main/django/db/models/sql/query.py) 
shows this import:

from collections.abc import Iterator, Mapping

Hope that helps.

On Tuesday, 26 April 2022 at 18:34:34 UTC+2 rikrdopr...@gmail.com wrote:

> Error:
>
>   File 
> "C:\Users\tecnico.ricardo\PycharmProjects\pythonProject01\venv01\lib\site-packages\django\db\models\sql\query.py",
>  
> line 11, in 
> from collections import Counter, Iterator, Mapping, OrderedDict
> ImportError: cannot import name 'Iterator' from 'collections' 
> (C:\Users\tecnico.ricardo\AppData\Local\Programs\Python\Python310\lib\collections\__init__.py)
> (venv01) PS C:\Users\tecnico.ricardo> 
>
>
>

-- 
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/18cccf8d-85ba-492e-ac9d-6d4a78ce7888n%40googlegroups.com.


Re: Help : Embedding pdf in Django detailview

2022-03-18 Thread Dexterr Jay
Thanks, I'll check it out

On Thu, Mar 17, 2022, 10:05 RANGA BHARATH JINKA 
wrote:

> Hi,
>
> Please try this.
>
>
> https://stackoverflow.com/questions/11779246/how-to-show-a-pdf-file-in-a-django-view
>
> On Thu, Mar 17, 2022 at 12:12 PM Dexterr Jay  wrote:
>
>> Hello guys, I'm developing a job board, and I want to display uploaded
>> files in job detailview without downloading the file.
>> When job seakers open a posted job I want the uploaded file from employer
>> to be rendered in web browser
>>
>> --
>> 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/CAC32Mkjj-frMgLdc0_MY1_sBrN_MxV0DLPb3gXAY8%3DZ4oL%2BnXQ%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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/CAK5m315HHYbmF-tX67SjZh5SoXvS7dscwJbUfTsddynoJr2zjg%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/CAC32MkhO1GyDjhOeHtQZ6FaN%2BfS7qhSd_o305yJrcFTUaqOT6A%40mail.gmail.com.


Re: Help : Embedding pdf in Django detailview

2022-03-17 Thread RANGA BHARATH JINKA
Hi,

Please try this.

https://stackoverflow.com/questions/11779246/how-to-show-a-pdf-file-in-a-django-view

On Thu, Mar 17, 2022 at 12:12 PM Dexterr Jay  wrote:

> Hello guys, I'm developing a job board, and I want to display uploaded
> files in job detailview without downloading the file.
> When job seakers open a posted job I want the uploaded file from employer
> to be rendered in web browser
>
> --
> 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/CAC32Mkjj-frMgLdc0_MY1_sBrN_MxV0DLPb3gXAY8%3DZ4oL%2BnXQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m315HHYbmF-tX67SjZh5SoXvS7dscwJbUfTsddynoJr2zjg%40mail.gmail.com.


Re: help

2022-02-26 Thread Kasper Laudrup

On 25/02/2022 21.10, loic ngounou wrote:

i want the source code of an authentification with django API and FireBase



https://github.com/shosenwales/django-firebase

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, 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/4dffccd8-2d49-366a-94b9-d2a70468132e%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Help

2022-02-02 Thread Sebastian Jung
You have a package https://pypi.org/project/django-emoji/ installed and now
you must in yozr settings.py set this variable

Fernando Jover  schrieb am Mi., 2. Feb. 2022,
16:26:

> Hi guys!
>
>
>
> i am learn Pythonand Pycharm show me this:
>
>
>
> raise ImproperlyConfigured(
>
> django.core.exceptions.ImproperlyConfigured: Requested setting
> EMOJI_IMG_TAG, but settings are not configured. You must either define the
> environment variable DJANGO_SETTINGS_MODULE or call settings.configure()
> before accessing settings.
>
>
>
> How can i chabge this in my settings?
>
>
>
> Enviado do Email 
> para Windows
>
>
>
> --
> 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/0397E3AC-5EB1-4684-958B-3CC47136F043%40hxcore.ol
> 
> .
>

-- 
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/CAKGT9mzdUgB2u2Wd5YiJGGQOd-eTG%2BOvEo3y4q3fYtjGWopNbg%40mail.gmail.com.


Re: help

2021-11-02 Thread Indrajeet Singh Yadav
Hi,
Follow these steps:-
1. Check i.e. trace back where exactly did u install python.
2. Trace where you installed django. to do that run this code on python 
path, pip freeze or pip freeze > requirements.txt(makes a requirements file 
good for future use), it gives all the install modules in python this will 
let you know if django is there or not.
3. If django not install install using pip.

If these steps fail then that means that you are trying to make a project 
in a terminal while a virtual environment is running.
[image: 2021-11-02.png]
You see that start (myvenv) That tell you that the virtual environment is 
running.
So here basically you do this, in this terminal you run pip install django

I hope this helps

On Monday, November 1, 2021 at 7:09:13 PM UTC+5:30 Anil Felipe Duggirala 
wrote:

> On Wed, Oct 27, 2021, at 12:50 AM, waqar khan wrote:
> > pip uninstall django
>
> Your answer is not worth the electricity it is written on Waqar.
>

-- 
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/b20d6c1a-14e8-466e-926c-c82ad09ef03dn%40googlegroups.com.


Re: help

2021-11-01 Thread Anil Felipe Duggirala
On Wed, Oct 27, 2021, at 12:50 AM, waqar khan wrote:
> pip uninstall django

Your answer is not worth the electricity it is written on Waqar.

-- 
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/b5e65fc2-ea85-4bd8-9052-578dbfdc5282%40www.fastmail.com.


Re: help

2021-10-26 Thread waqar khan
pip uninstall django



On Tue, Oct 26, 2021 at 6:41 PM Kasper Laudrup 
wrote:

> On 26/10/2021 13.53, machine learning wrote:
> > Uninstall it and install it again.
> >
>
> What?
>
> I think you're replying to the wrong person, but what do you think
> uninstalling and reinstalling would achieve?
>
> 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, 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/091ba497-c19c-9c0b-b73d-1c2886fe4427%40stacktrace.dk
> .
>

-- 
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/CA%2B08CAOV%3D2%2BaBaTQ5mJEZ9L9XOxo8mTH9HWfGfoUjNauVpqe1Q%40mail.gmail.com.


Re: help

2021-10-26 Thread Akash Verma
Use python -m django-admin startproject 

On Tue 26 Oct, 2021, 3:45 PM Kasper Laudrup,  wrote:

> On 25/10/2021 21.59, Planet X wrote:
> > hey there i can not figure out while django is installed to but its
> > showing django-admin is not recongnized as an internal or external
> > command please help
> >
>
> How did you install Django? What OS are you using?
>
> A bit of information like that would make it much easier for someone to
> help you.
>
> 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, 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/8d6cabf4-5972-190f-1744-6d3983715c2e%40stacktrace.dk
> .
>

-- 
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/CALLgasxepbqevfDWpo%3DZvj21auOhxiQ4SrYps5WuPv1QJrCsbg%40mail.gmail.com.


Re: help

2021-10-26 Thread Luigi Cleffi
First of all you need to activate your virtual envirolment before
installing python on your machine. To do that you need to run on your cmd
ou terminal.:"python3 -m venv env && cd env\scripts\activate" than you
install django with The following code: "pip install django". To make sure
that django is install now you need to run " pipoca freeze >
requirements.txt". If you have any questions Just let me know. I'll see
what I can do to help.

Em ter., 26 de out. de 2021 07:15, Kasper Laudrup 
escreveu:

> On 25/10/2021 21.59, Planet X wrote:
> > hey there i can not figure out while django is installed to but its
> > showing django-admin is not recongnized as an internal or external
> > command please help
> >
>
> How did you install Django? What OS are you using?
>
> A bit of information like that would make it much easier for someone to
> help you.
>
> 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, 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/8d6cabf4-5972-190f-1744-6d3983715c2e%40stacktrace.dk
> .
>

-- 
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/CAFFs8J-qKUzERp39xh8yzK1xFb5d6_eyO_E36GhxYaUkwJCSTA%40mail.gmail.com.


Re: help

2021-10-26 Thread Kasper Laudrup

On 26/10/2021 13.53, machine learning wrote:

Uninstall it and install it again.



What?

I think you're replying to the wrong person, but what do you think 
uninstalling and reinstalling would achieve?


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, 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/091ba497-c19c-9c0b-b73d-1c2886fe4427%40stacktrace.dk.


Re: help

2021-10-26 Thread Mohammad Naebi
>
>
> Hi
> Enter the virtual environment first
> Write the following command in your terminal or shell
>
pip freeze
All the modules you have installed will be shown to you along with the
version.

-- 
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/CAFxtNdzg6b_RJjQ0pyc%3DNCh95ggLDXREskpv9QqA3VuHx_MMEQ%40mail.gmail.com.


Re: help

2021-10-26 Thread machine learning
Uninstall it and install it again.

On Tue, 26 Oct 2021 at 03:15, Kasper Laudrup  wrote:

> On 25/10/2021 21.59, Planet X wrote:
> > hey there i can not figure out while django is installed to but its
> > showing django-admin is not recongnized as an internal or external
> > command please help
> >
>
> How did you install Django? What OS are you using?
>
> A bit of information like that would make it much easier for someone to
> help you.
>
> 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, 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/8d6cabf4-5972-190f-1744-6d3983715c2e%40stacktrace.dk
> .
>

-- 
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/CAKKYCB72ocQ9zOrEAznWxk0DpFqR070N-v0Pyzkg%3DDCLmVQ56Q%40mail.gmail.com.


Re: help

2021-10-26 Thread Boateng Isaac
If you're using a virtual environment try installing django in that
environment again

On Mon, 25 Oct 2021, 7:59 pm Planet X,  wrote:

> hey there i can not figure out while django is installed to but its
> showing django-admin is not recongnized as an internal or external command
> please help
>
> --
> 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/0261503c-4384-46a1-aa30-b37e53713abfn%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/CAPtHQ6%3DhT86yRdSt6O7KC2vZzMJQnXqTYGzdgFn2cg0KjCLgJw%40mail.gmail.com.


Re: help

2021-10-26 Thread Kasper Laudrup

On 25/10/2021 21.59, Planet X wrote:
hey there i can not figure out while django is installed to but its 
showing django-admin is not recongnized as an internal or external 
command please help




How did you install Django? What OS are you using?

A bit of information like that would make it much easier for someone to 
help you.


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, 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/8d6cabf4-5972-190f-1744-6d3983715c2e%40stacktrace.dk.


Re: help

2021-10-25 Thread Lakshyaraj Dash X-D 25
First do one thing that try uninstalling django. If it doesn't work, then
run python -m pip install django

On Tue, Oct 26, 2021, 01:29 Planet X  wrote:

> hey there i can not figure out while django is installed to but its
> showing django-admin is not recongnized as an internal or external command
> please help
>
> --
> 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/0261503c-4384-46a1-aa30-b37e53713abfn%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/CAF7qQgDZZ-Xgg0fK5kfk7B0mxUa7BxcSZyoNSjv8dscw%3Dpx2ZA%40mail.gmail.com.


Re: help

2021-10-25 Thread Aashish Kumar
Yes Django is not installed

On Tue, 26 Oct 2021 at 1:29 AM, Planet X  wrote:

> hey there i can not figure out while django is installed to but its
> showing django-admin is not recongnized as an internal or external command
> please help
>
> --
> 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/0261503c-4384-46a1-aa30-b37e53713abfn%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/CACTAcryHVi4KhpwLRg0nwb-pOg-Z8hbjMkAVidGqi9--HnuQeA%40mail.gmail.com.


Re: HELP ME OUT

2021-10-20 Thread Uzzal Hossain
Change folder name to templates
There is typo mistake.
And let me if it's fixed.

On Wed, Oct 20, 2021, 3:15 PM Planet X  wrote:

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> help
>
> --
> 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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%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/CABszMp9-tG40xPQdfg1n%3Dr6DuiC4MqSgtACafWwkS3%3DxOn8asg%40mail.gmail.com.


Re: HELP ME OUT

2021-10-20 Thread Jamal El khdadi
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = [
   os.path.join(BASE_DIR, 'assets')
]

On Wed, Oct 20, 2021, 11:00 AM Lakshyaraj Dash X-D 25 <
dashlakshyaraj2...@gmail.com> wrote:

> Change the assets to static
>
> On Wed, 20 Oct, 2021, 2:45 pm Planet X,  wrote:
>
>> I can not connect to my static files here i am sending my screen shoot of
>> the setting and others links to the my base.html whats my fault please do
>> help
>>
>> --
>> 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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%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/CAF7qQgAnM1ckX7zaGfeVTfB9PJpUuZ99C1w%2B9Hbb%2B85ke7tb8A%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/CAB889%2ByxhKMzA7T3Zx-5VS%3D1jOTgWzOa%2BNr0aptk33KM6FOK4A%40mail.gmail.com.


Re: HELP ME OUT

2021-10-20 Thread Lakshyaraj Dash X-D 25
Do one thing... In the templates inside {% static 'css/style.css' %} make
it {% static 'prsquare/css/style.css' %}

On Wed, 20 Oct, 2021, 2:45 pm Planet X,  wrote:

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> help
>
> --
> 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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%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/CAF7qQgBH3-%2B9oWtsvLhr6%3DZs9j1%2BDqXz%3DiVDd34KOG2gDDqS1g%40mail.gmail.com.


Re: HELP ME OUT

2021-10-20 Thread Lakshyaraj Dash X-D 25
Change the assets to static

On Wed, 20 Oct, 2021, 2:45 pm Planet X,  wrote:

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> help
>
> --
> 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/7ffc995e-f0fa-4624-8138-1e22b7413e5an%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/CAF7qQgAnM1ckX7zaGfeVTfB9PJpUuZ99C1w%2B9Hbb%2B85ke7tb8A%40mail.gmail.com.


Re: help with django installation

2021-08-25 Thread Kasper Laudrup
On 25/08/2021 12.42, Amor Zamora wrote:
> I put them in situation. I am installing an application, on my local PC,
> that uses django. Application that I installed 1 month ago and it worked
> perfectly. 2 days ago I tried to install it again because I changed the
> PC. and when accessing the functionalities it returns this error.
> HTTPConnectionPool (host = 'localhost', port = 8894): Max retries
> exceeded with url: /? Wsdl (Caused by NewConnectionError
> (': Failed
> to establish a new connection: [Errno 111] Connection refused '))
> Request Method: POST Request URL: http://127.0.0.1:8000/en/aplicaicon2/
> Django Version: 2.0.13 Exception Type: ConnectionError Exception Value:
> HTTPConnectionPool (host = 'localhost', port = 8894): Max retries
> exceeded with url: /? Wsdl (Caused by NewConnectionError
> (': Failed
> to establish a new connection: [Errno 111] Connection refused '))

Hard to know for sure without seeing the code or even having any idea
what the application is supposed to do, but it certainly looks like it's
trying to connect to some SOAP service that should be running on the
localhost at port 8894, but nothing is listening on that port.

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, 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/39527b28-deaa-e1c3-4d05-279db48c42b9%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: HELP me: "a beginner's questions"

2021-08-19 Thread MR INDIA
First Take all the Deployment security checklist given here and then 
deploy, python3 manage.py runserver starts a *development *server *not* a 
*production* server you have to configure that on your own...

On Wednesday, 18 August 2021 at 20:28:09 UTC+5:30 alex...@gmail.com wrote:

> Hello,
>
> There are a few ways to deploy a Django site to a production server. Tools 
> like Ansible and Docker help a lot. 
>
> One way to transfer files is via git push and pull through a repository. 
> There are other ways as well.  
>
> Once the files are on the server, the server needs all the services set up 
> and running for database, static files, http server, caching, environment 
> variables etc. There can be a lot more to this.
>
> I had the same questions as yours about a year ago, and can empathize.. 
> I've since learned a couple different reliable deployment methods using 
> Dokker/dokku and Ansible. Happy to help more if you'd like, hit me up here 
> or directly.
>
> Alex B
>
>
>
> On Wed, Aug 18, 2021, 7:02 AM  wrote:
>
>> Hi
>>
>> I am now starting to work in Django.
>>
>> I built a development environment on my laptop. I experimented there, 
>> things work.
>>
>> I have a web server on the net. With multiple hosted domains.
>>
>>  
>>
>> I would put my attempt on one. But things don't work.
>>
>> - python is installed, updated
>>
>> - I installed django
>>
>> - "python3 manage.py runserver" seems to work, but nothing comes out
>>
>>  
>>
>> Questions:
>>
>> - how do I transfer the developed file there?
>>
>> - what do I need to do to run as a web server?
>>
>>  
>>
>> Thanks for the help
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/001e01d7940e%24095cd210%241c167630%24%40gmail.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/0d31f37b-000f-45db-8a63-0d024a1b3fa0n%40googlegroups.com.


Re: HELP me: "a beginner's questions"

2021-08-18 Thread M. GW

Hey,

have you check this:

https://docs.djangoproject.com/en/3.2/howto/deployment/
jt.vc...@gmail.com schrieb am Mittwoch, 18. August 2021 um 15:03:03 UTC+2:

> Hi
>
> I am now starting to work in Django.
>
> I built a development environment on my laptop. I experimented there, 
> things work.
>
> I have a web server on the net. With multiple hosted domains.
>
>  
>
> I would put my attempt on one. But things don't work.
>
> - python is installed, updated
>
> - I installed django
>
> - "python3 manage.py runserver" seems to work, but nothing comes out
>
>  
>
> Questions:
>
> - how do I transfer the developed file there?
>
> - what do I need to do to run as a web server?
>
>  
>
> Thanks for the help
>

-- 
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/9d85813c-2aee-4dc4-9846-cff4511372f7n%40googlegroups.com.


Re: HELP me: "a beginner's questions"

2021-08-18 Thread Alex B
Hello,

There are a few ways to deploy a Django site to a production server. Tools
like Ansible and Docker help a lot.

One way to transfer files is via git push and pull through a repository.
There are other ways as well.

Once the files are on the server, the server needs all the services set up
and running for database, static files, http server, caching, environment
variables etc. There can be a lot more to this.

I had the same questions as yours about a year ago, and can empathize..
I've since learned a couple different reliable deployment methods using
Dokker/dokku and Ansible. Happy to help more if you'd like, hit me up here
or directly.

Alex B



On Wed, Aug 18, 2021, 7:02 AM  wrote:

> Hi
>
> I am now starting to work in Django.
>
> I built a development environment on my laptop. I experimented there,
> things work.
>
> I have a web server on the net. With multiple hosted domains.
>
>
>
> I would put my attempt on one. But things don't work.
>
> - python is installed, updated
>
> - I installed django
>
> - "python3 manage.py runserver" seems to work, but nothing comes out
>
>
>
> Questions:
>
> - how do I transfer the developed file there?
>
> - what do I need to do to run as a web server?
>
>
>
> Thanks for the help
>
> --
> 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/001e01d7940e%24095cd210%241c167630%24%40gmail.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/CALyOw5h%3D24yn9vv5DSs279he_rytJAoOZauirt8oX5tg8y--gQ%40mail.gmail.com.


Re: Help

2021-08-14 Thread Lalit Suthar
You should send a custom frontend url to the users, appending the
parameters required.
Now your frontend will received that and send a POST request with the
params received to your DRF backend
There you can verify the parameters and change the password

On Fri, 13 Aug 2021 at 11:56, ola neat  wrote:

> Ohk
> So this is it I'm working on a project using drf & angular & I want to add
> forgot password functionality to the project,  which i have  successfully
> achieved now my issue is this after they link for changing password has
> been successfully sent to the user's email address( IMG above) how do i
> ensure that when the user clicks on that link instead of been redirected to
> a django view he/she is redirected to an angular form where they can change
> their password
>
>
>
> On Thu, Aug 12, 2021, 21:30 Kasper Laudrup  wrote:
>
>> On 12/08/2021 15.05, ola neat wrote:
>> > This is d link I've generate 4 reset pswd sent 2 d user email, but I'm
>> > using angular 4 my front end,  now my iss is how do i pass angular url
>> > so that when d user clicks on diz link, he/she will b redirected to d
>> > angular change pswd form
>> >
>>
>> It is pretty hard to understand what you're writing. Not sure if it some
>> kind of Pigeon English or similar, but from what I can gather you're
>> trying to send an email with a link and the email doesn't contain the
>> link you expect?
>>
>> I don't know why Angular should be related to that, but I don't have any
>> experience with that. Maybe you're writing a single page application and
>> want to create a link to a specific page there?
>>
>> Try to rewrite your question in plain English if possible, show the code
>> that generates the incorrect link and which link (or specific page in
>> you Angular code) you'd actually want it to generate instead.
>>
>> 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, 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/882ba90f-fdfa-55ca-d154-510f64b5dbd6%40stacktrace.dk
>> .
>>
> --
> 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/CAHLKn70nv8_8mJcL%3Dx4oGkMB0Xit-_9Y06t0SDjQp6fPZqwLiQ%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/CAGp2JVG-yjXc-NWZ2shjmppRx5HkqUk2HHw8HXb0RTpR8mAEMA%40mail.gmail.com.


Re: Help

2021-08-13 Thread ola neat
Ohk
So this is it I'm working on a project using drf & angular & I want to add
forgot password functionality to the project,  which i have  successfully
achieved now my issue is this after they link for changing password has
been successfully sent to the user's email address( IMG above) how do i
ensure that when the user clicks on that link instead of been redirected to
a django view he/she is redirected to an angular form where they can change
their password



On Thu, Aug 12, 2021, 21:30 Kasper Laudrup  wrote:

> On 12/08/2021 15.05, ola neat wrote:
> > This is d link I've generate 4 reset pswd sent 2 d user email, but I'm
> > using angular 4 my front end,  now my iss is how do i pass angular url
> > so that when d user clicks on diz link, he/she will b redirected to d
> > angular change pswd form
> >
>
> It is pretty hard to understand what you're writing. Not sure if it some
> kind of Pigeon English or similar, but from what I can gather you're
> trying to send an email with a link and the email doesn't contain the
> link you expect?
>
> I don't know why Angular should be related to that, but I don't have any
> experience with that. Maybe you're writing a single page application and
> want to create a link to a specific page there?
>
> Try to rewrite your question in plain English if possible, show the code
> that generates the incorrect link and which link (or specific page in
> you Angular code) you'd actually want it to generate instead.
>
> 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, 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/882ba90f-fdfa-55ca-d154-510f64b5dbd6%40stacktrace.dk
> .
>

-- 
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/CAHLKn70nv8_8mJcL%3Dx4oGkMB0Xit-_9Y06t0SDjQp6fPZqwLiQ%40mail.gmail.com.


Re: Help

2021-08-12 Thread Kasper Laudrup
On 12/08/2021 15.05, ola neat wrote:
> This is d link I've generate 4 reset pswd sent 2 d user email, but I'm
> using angular 4 my front end,  now my iss is how do i pass angular url
> so that when d user clicks on diz link, he/she will b redirected to d
> angular change pswd form
>

It is pretty hard to understand what you're writing. Not sure if it some
kind of Pigeon English or similar, but from what I can gather you're
trying to send an email with a link and the email doesn't contain the
link you expect?

I don't know why Angular should be related to that, but I don't have any
experience with that. Maybe you're writing a single page application and
want to create a link to a specific page there?

Try to rewrite your question in plain English if possible, show the code
that generates the incorrect link and which link (or specific page in
you Angular code) you'd actually want it to generate instead.

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, 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/882ba90f-fdfa-55ca-d154-510f64b5dbd6%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


  1   2   3   4   5   6   7   8   9   10   >