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;
>   

Help with Python Django Chat

2024-07-29 Thread joey buonocore
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" }}


{% csrf_token %}
Delete


{% endfor %}
{% endfor %}






Send


Error sending your message ❌






Upload
Send


Error sending your message ❌



Return to Lobby




let eventSource;
const sseData = document.getElementById('sse-data');

function startSSE() {
eventSource = new EventSource('/stream-chat-messages/');
eventSource.onmessage = event => {
const data = JSON.parse(event.data);

// Check if the message already exists to prevent duplicates
if (!document.querySelector(`[data-message-id="${data.id}"]`)) {
// Format date and time
const createdAt = new Date(data.created_at);
const timeString = createdAt.toLocaleTimeString([], { hour: 
'2-digit', minute: 

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.


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

2024-07-13 Thread Krishnakant Mane

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.


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 insta

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
>>>  
>>> <https://groups.google.com/d/msgid/django-users/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> 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
>>  
>> <https://groups.google.com/d/msgid/django-users/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> 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.


Help deploying to vercel

2024-06-13 Thread ASAMOAH EMMANUEL
Hi, I'm trying to deploy my django app to vercel and this is the error I'm
currently facing. Any help would be greatly appreciated.

This Serverless Function has crashed.
Your connection is working correctly.
Vercel is working correctly.
500: INTERNAL_SERVER_ERRORCode: `FUNCTION_INVOCATION_FAILED`ID:
`cdg1::q7cxr-1718294528917-9fa86c2da026`
–
If you are a visitor, contact the website owner or try again later.
–
If you are the owner, learn how to fix the error and check the logs.
Here are the logs:


JUN 13 16:02:11.69
GET
500
wallet-6l6smpavk-jasonpython50s-projects.vercel.app
name

/favicon.ico
LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in
the function code. However, in rare cases, a Lambda runtime update can
cause unexpected function behavior. For functions using managed runtimes,
runtime updates can be triggered by a function change, or can be applied
automatically. To determine if the runtime has been updated, check the
runtime version in the INIT_START log entry. If this error correlates with
a change in the runtime version, you may be able to mitigate this error by
temporarily rolling back to the previous runtime version. For more
information, see
https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html [ERROR]
Runtime.ImportModuleError: Unable to import module 'vc__handler__python':
No module named 'allauth' Traceback (most recent call last):

-- 
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/CABFHQYw%3DeL_0ppi-qLPY%3D14SCSTTrX-pzrxPpHFhuVUGTA0qSg%40mail.gmail.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
> <https://groups.google.com/d/msgid/django-users/041845f6-defc-41be-a996-d443a9341cebn%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
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.


Help on Creating a Superuser account on render.

2024-04-06 Thread ALINDA Fortunate
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.
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/CAPifpCscJ_H1hAHjgw68iDDyb4gem3Ut7Zw3Ps4uJNqqhFnzLA%40mail.gmail.com.


Re: ANYONE CAN HELP ME

2024-04-03 Thread Miroslav Milic
Hi,

Here is the link to the Django docs where it is explained how to handle
multiple file uploads with FileInput. Try to use the example from the docs
as a starting point.

https://docs.djangoproject.com/en/5.0/topics/http/file-uploads/#uploading-multiple-files

Best regards,
--
Miroslav Milic


On Tue, Apr 2, 2024 at 7:20 PM arts maxwell Anderson <
arts.mawellanderson@gmail.com> wrote:

> hello i have this error , i want to uppload multiple django image
> ValueError: FileInput doesn't support uploading multiple files.
> any one can help me
>
> class FormImages(ModelForm):
> multiple_image= forms.ImageField(widget=forms.FileInput(attrs= {
> 'multiple': True}))
>
> class Meta:
>
> model = Images
> fields=['multiple_image']
>
>
> #create prodcut in function
> def create_product(request):
> form_image = FormImages()
> form = FormCretaeProdcut()
>
> if request.method == 'POST':
> files = request.FILES.getlist('multiple_image')
> form = FormCretaeProdcut(request.POST, request.FILES)
> if form.is_valid():
> product = form.save(commit=False)
> product.save()
> product.user = request.user
> product.save()
> for file in files :
> Images.objects.create(product=product , images=file)
> else:
> form = FormCretaeProdcut()
> return render(request, 'create_product.html', {'form':form, 'i_form':
> form_image})
>
> --
> 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/c5cf6e10-68a1-4ceb-915d-df489db9b863n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/c5cf6e10-68a1-4ceb-915d-df489db9b863n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEOWdJUwkZPdAAqAbayEp%3DWhY5i9vrDk6fVk5VEjkTxkegj-%2Bw%40mail.gmail.com.


ANYONE CAN HELP ME

2024-04-02 Thread arts maxwell Anderson
hello i have this error , i want to uppload multiple django image 
ValueError: FileInput doesn't support uploading multiple files.
any one can help me 

class FormImages(ModelForm):
multiple_image= forms.ImageField(widget=forms.FileInput(attrs= {
'multiple': True}))

class Meta:

model = Images
fields=['multiple_image']


#create prodcut in function 
def create_product(request):
form_image = FormImages()
form = FormCretaeProdcut()

if request.method == 'POST':
files = request.FILES.getlist('multiple_image')
form = FormCretaeProdcut(request.POST, request.FILES)
if form.is_valid():
product = form.save(commit=False)
product.save()
product.user = request.user
product.save()
for file in files :
Images.objects.create(product=product , images=file)
else:
form = FormCretaeProdcut()
return render(request, 'create_product.html', {'form':form, 'i_form':
form_image}) 

-- 
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/c5cf6e10-68a1-4ceb-915d-df489db9b863n%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.


Help on Django_allauth Login Page

2024-03-08 Thread ALINDA Fortunate
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.


Re: Need help in python Django project "online train ticket booking system"

2024-02-22 Thread Daniel Martinez
Hello, what is the problem you are experimenting? Canyou please provide
code?

On Mon, Feb 19, 2024, 9:21 AM Surya Santhosh 
wrote:

> Need help in python Django project "online train ticket booking system"
>
> --
> 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/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANp4oeuWD%2BNmQWonAuUh-7cQCZUkXgnOY33y1%2Bts5bKnJqZv0g%40mail.gmail.com.


Re: Need help in python Django project "online train ticket booking system"

2024-02-21 Thread Fasila Ali
I am Interested

On Mon, 19 Feb 2024, 9:51 pm Surya Santhosh, 
wrote:

> Need help in python Django project "online train ticket booking system"
>
> --
> 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/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABnbZxYmoA-Drek8sEJiG8%2Br7pwwYqxE6drFZzgOem%2BqJmBLxg%40mail.gmail.com.


Need help in python Django project "online train ticket booking system"

2024-02-19 Thread Surya Santhosh
Need help in python Django project "online train ticket booking system"

-- 
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/4b192345-549f-466f-96a8-429037e14875n%40googlegroups.com.


Re: Need help setting up my Django environment

2024-02-18 Thread kge...@gmail.com
**What Ryan said about incompatibility

If you want to pick a particular version of python (say, 3.12) when you 
create an env use:

conda create -n myEnv python==3.12

On Sunday, February 18, 2024 at 11:48:39 AM UTC-5 kge...@gmail.com wrote:

> Saw this on stack overflow: 
> https://stackoverflow.com/questions/70347099/error-installing-a-django-project-attrributeerror-module-collections-has-no-a
>
> Supports what Mordecai Etukudo said about version incompatability.
>
> *Type "help", "copyright", "credits" or "license" for more information. *
> *>>> import collections *
> *>>> collections.Iterator *
> *:1: DeprecationWarning: Using or importing the ABCs from 
> 'collections' instead of from 'collections.abc' is deprecated since Python 
> 3.3, and in 3.10 it will stop working *
> **
>
> How mature is your project? Changing python (or django) versions isnt 
> always trivial but I suspect your project is fairly new though and you may 
> want to consider using the latest of each.
>
> On Saturday, February 17, 2024 at 3:32:32 PM UTC-5 Ryan Nowakowski wrote:
>
>> Your Python version is likely too new for your version of Django.
>>
>>
>> On February 17, 2024 6:06:41 AM CST, Brigid Sang  
>> wrote:
>>
>>> I'm encoutering the below error, how can I fix this
>>>
>>> Traceback (most recent call last):
>>>   File "/home/brigid/.local/bin/django-admin", line 8, in 
>>> sys.exit(execute_from_command_line())
>>>  ^^^
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
>>>  
>>> line 371, in execute_from_command_line
>>> utility.execute()
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
>>>  
>>> line 365, in execute
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
>>>  
>>> line 288, in run_from_argv
>>> self.execute(*args, **cmd_options)
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
>>>  
>>> line 335, in execute
>>> output = self.handle(*args, **options)
>>>  ^
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
>>>  
>>> line 20, in handle
>>> super().handle('project', project_name, target, **options)
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
>>>  
>>> line 117, in handle
>>> django.setup()
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line 
>>> 16, in setup
>>> from django.urls import set_script_prefix
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py", 
>>> line 1, in 
>>> from .base import (
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py", 
>>> line 8, in 
>>> from .exceptions import NoReverseMatch, Resolver404
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py",
>>>  
>>> line 1, in 
>>> from django.http import Http404
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py", 
>>> line 5, in 
>>> from django.http.response import (
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py", 
>>> line 13, in 
>>> from django.core.serializers.json import DjangoJSONEncoder
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
>>>  
>>> line 23, in 
>>> from django.core.serializers.base import SerializerDoesNotExist
>>>   File 
>>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
>>>  
>>> line 6, in 
>>> from django.db import models
>>>   File 
>>> "/home/brigid/.local/lib/python3.

Re: Need help setting up my Django environment

2024-02-18 Thread kge...@gmail.com
Saw this on stack 
overflow: 
https://stackoverflow.com/questions/70347099/error-installing-a-django-project-attrributeerror-module-collections-has-no-a

Supports what Mordecai Etukudo said about version incompatability.

*Type "help", "copyright", "credits" or "license" for more information. *
*>>> import collections *
*>>> collections.Iterator *
*:1: DeprecationWarning: Using or importing the ABCs from 
'collections' instead of from 'collections.abc' is deprecated since Python 
3.3, and in 3.10 it will stop working *
**

How mature is your project? Changing python (or django) versions isnt 
always trivial but I suspect your project is fairly new though and you may 
want to consider using the latest of each.

On Saturday, February 17, 2024 at 3:32:32 PM UTC-5 Ryan Nowakowski wrote:

> Your Python version is likely too new for your version of Django.
>
>
> On February 17, 2024 6:06:41 AM CST, Brigid Sang  
> wrote:
>
>> I'm encoutering the below error, how can I fix this
>>
>> Traceback (most recent call last):
>>   File "/home/brigid/.local/bin/django-admin", line 8, in 
>> sys.exit(execute_from_command_line())
>>  ^^^
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
>>  
>> line 371, in execute_from_command_line
>> utility.execute()
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
>>  
>> line 365, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
>>  
>> line 288, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
>>  
>> line 335, in execute
>> output = self.handle(*args, **options)
>>  ^
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
>>  
>> line 20, in handle
>> super().handle('project', project_name, target, **options)
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
>>  
>> line 117, in handle
>> django.setup()
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line 
>> 16, in setup
>> from django.urls import set_script_prefix
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py", 
>> line 1, in 
>> from .base import (
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py", 
>> line 8, in 
>> from .exceptions import NoReverseMatch, Resolver404
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py",
>>  
>> line 1, in 
>> from django.http import Http404
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py", 
>> line 5, in 
>> from django.http.response import (
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py", 
>> line 13, in 
>> from django.core.serializers.json import DjangoJSONEncoder
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
>>  
>> line 23, in 
>> from django.core.serializers.base import SerializerDoesNotExist
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
>>  
>> line 6, in 
>> from django.db import models
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/__init__.py",
>>  
>> line 3, in 
>> from django.db.models.aggregates import *  # NOQA
>> ^
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/aggregates.py",
>>  
>> line 5, in 
>> from django.db.models.expressions import Case, Func, Star, When
>>   File 
>> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
>>  
>> line 486, in 
>> class TemporalSubtraction(CombinedExpression):
>>   File 
>> "/home/brigid/.local/lib/python3.11

Re: Need help setting up my Django environment

2024-02-17 Thread Mordecai Etukudo
Comment you model. Py and the run if you still have the issue not this is
to fine how where the issue if from

On Sat, Feb 17, 2024, 1:38 PM Brigid Sang  wrote:

> I'm encoutering the below error, how can I fix this
>
> Traceback (most recent call last):
>   File "/home/brigid/.local/bin/django-admin", line 8, in 
> sys.exit(execute_from_command_line())
>  ^^^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
> line 371, in execute_from_command_line
> utility.execute()
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
> line 365, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
> line 288, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
> line 335, in execute
> output = self.handle(*args, **options)
>  ^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
> line 20, in handle
> super().handle('project', project_name, target, **options)
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
> line 117, in handle
> django.setup()
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line
> 16, in setup
> from django.urls import set_script_prefix
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py",
> line 1, in 
> from .base import (
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py",
> line 8, in 
> from .exceptions import NoReverseMatch, Resolver404
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py",
> line 1, in 
> from django.http import Http404
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py",
> line 5, in 
> from django.http.response import (
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py",
> line 13, in 
> from django.core.serializers.json import DjangoJSONEncoder
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
> line 23, in 
> from django.core.serializers.base import SerializerDoesNotExist
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
> line 6, in 
> from django.db import models
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/__init__.py",
> line 3, in 
> from django.db.models.aggregates import *  # NOQA
> ^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/aggregates.py",
> line 5, in 
> from django.db.models.expressions import Case, Func, Star, When
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
> line 486, in 
> class TemporalSubtraction(CombinedExpression):
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
> line 487, in TemporalSubtraction
> output_field = fields.DurationField()
>^^
>   File
> "/home/brigid/.local/lib/python3.11/site-packages/django/db/models/fields/__init__.py",
> line 155, in __init__
> if isinstance(choices, collections.Iterator):
>
> AttributeError: module 'collections' has no attribute 'Iterator'
>
> --
> 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/ce94bd02-d38d-464d-9d06-2fbd3d5e7340n%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/CAMZpRz-hZX4X-_ZgvcWj_8izpqv33Tc69vfYVEOpyrXGWOEfeg%40mail.gmail.com.


Need help setting up my Django environment

2024-02-17 Thread Brigid Sang
I'm encoutering the below error, how can I fix this

Traceback (most recent call last):
  File "/home/brigid/.local/bin/django-admin", line 8, in 
sys.exit(execute_from_command_line())
 ^^^
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
 
line 371, in execute_from_command_line
utility.execute()
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/__init__.py",
 
line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
 
line 288, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/base.py",
 
line 335, in execute
output = self.handle(*args, **options)
 ^
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/commands/startproject.py",
 
line 20, in handle
super().handle('project', project_name, target, **options)
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/management/templates.py",
 
line 117, in handle
django.setup()
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/__init__.py", line 
16, in setup
from django.urls import set_script_prefix
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/__init__.py", 
line 1, in 
from .base import (
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/base.py", 
line 8, in 
from .exceptions import NoReverseMatch, Resolver404
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/urls/exceptions.py", 
line 1, in 
from django.http import Http404
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/http/__init__.py", 
line 5, in 
from django.http.response import (
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/http/response.py", 
line 13, in 
from django.core.serializers.json import DjangoJSONEncoder
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/__init__.py",
 
line 23, in 
from django.core.serializers.base import SerializerDoesNotExist
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/core/serializers/base.py",
 
line 6, in 
from django.db import models
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/__init__.py",
 
line 3, in 
from django.db.models.aggregates import *  # NOQA
^
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/aggregates.py",
 
line 5, in 
from django.db.models.expressions import Case, Func, Star, When
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
 
line 486, in 
class TemporalSubtraction(CombinedExpression):
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/expressions.py",
 
line 487, in TemporalSubtraction
output_field = fields.DurationField()
   ^^
  File 
"/home/brigid/.local/lib/python3.11/site-packages/django/db/models/fields/__init__.py",
 
line 155, in __init__
if isinstance(choices, collections.Iterator):
   
AttributeError: module 'collections' has no attribute 'Iterator'

-- 
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/ce94bd02-d38d-464d-9d06-2fbd3d5e7340n%40googlegroups.com.


Django project website UX: call for help!

2024-02-03 Thread 'Niccolò Mineo' via Django users
Hello everyone,
at 20tab we just finished collaborating with the Django Software Foundation 
to improve the Django project website's accessibility and usability.

We now need you to help us understand how involved people are in the Django 
project and how much they care for good UX. Fill out this very short form 
and let us know! 

https://t.co/cWiMc6SJPB

Thank you to all of you who will take the time to respond - your input is 
of immense value to us.

Feel free to raise any questions here.

-- 
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/e56f58cc-e56e-4183-98e2-06a01a9c1160n%40googlegroups.com.


help

2023-12-22 Thread Abdoulaye SENE
hello i am using docker. after building, i see this mistake "ERROR: failed 
to solve: python:3.9-alpine3.13: failed to authorize: failed to fetch oauth 
token: unexpected status from GET request to h 
ttps://auth.docker.io/token?scope=repository%3Alibra"

-- 
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/c35b52d1-6717-4277-92eb-968bcb6ee751n%40googlegroups.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 

Help with DRF error

2023-12-16 Thread Larry Martell
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 super().get_attribute(instance)
  File
"/home/larrymartell/.local/lib/python3.8/site-packages/rest_framework/fields.py",
line 479, in get_attribute
raise type(exc)(msg)
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 

help

2023-12-15 Thread Abdoulaye SENE
hello forks! i need your help. in my codes i see "extend_schema_view" is 
not defined. so i see that it is not defined but i do not know in which 
package it is.
@extend_schema_view( 
list=extend_schema(
parameters=[
OpenApiParameter(
'assigned_only',
OpenApiTypes.INT, enum=[0, 1],
description='Filter by items assigned to recipes',
)
]
)
)

-- 
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/dc7c29ca-76b4-4bf7-907c-f1db1a1a6bd9n%40googlegroups.com.


HELP needed in a service-worker in a react django project

2023-10-13 Thread Tejas Vaij
Hello there, 
I am working on a project where I want to post a blob recorded from 
RecordRTC to my django server from the service worker but I am not able to 
get whats wrong with it. Can anyone please help me understand what wrong am 
I going.

Here is the link of stackoverflow question of mine:
https://stackoverflow.com/questions/77280149/not-able-to-upload-file-to-django-server-from-service-worker-in-react-js

-- 
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/1b095c71-73c9-485d-ada9-20f395bef0c6n%40googlegroups.com.


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.


help me

2023-09-23 Thread Akoo Rahimi
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.


django form validation error massage not showing. please help me out

2023-09-15 Thread Mohammad Shahidullah
models.py
class Position(models.Model):
title = models.CharField(max_length=50)

def __str__(self):
return self.title

class Department(models.Model):
title = models.CharField(max_length=50)

def __str__(self):
return self.title


class Employee(models.Model):
fullname = models.CharField(max_length=100)
emp_code = models.CharField(max_length=6)
mobile= models.CharField(max_length=11)
email = models.EmailField(max_length=25)
position= models.ForeignKey(Position,on_delete=models.CASCADE)
Department = models.ForeignKey(Department, on_delete=models.CASCADE)
password_first = models.CharField(max_length=25)
password_again = models.CharField(max_length=25)

def __str__ (self):
return self.fullname

forms.py
User = get_user_model()

class EmployeeForm(forms.ModelForm):

class Meta:
model = Employee
fields = ('fullname','mobile','emp_code','position', 'Department',
'email', 'password_first', 'password_again')
labels = {
'fullname':'Full Name',
'emp_code':'Employee Code',
'password_first': 'Password',
'password_again': 'Confirm Password',
}

widgets = {
'password_first': forms.PasswordInput(),
'password_again' : forms.PasswordInput(),
}


def __init__(self, *args, **kwargs):
super(EmployeeForm,self).__init__(*args, **kwargs)
self.fields['position'].empty_label = "Select"
self.fields['Department'].empty_label = "Select"



def clean_username(self):
username = self.cleaned_data.get('emp_code')
qs = User.objects.filter(username=username)
if qs.exists():
raise forms.ValidationError('username already exists')
return username

def clean(self):
cleaned_data = self.cleaned_data
password_first = self.cleaned_data.get('password_first')
password_again = self.cleaned_data.get('password_again')
if password_first and password_again and password_first != 
password_again:
raise forms.ValidationError("Passwords din't match")
return cleaned_data

def clean_email(self):
email_address = self.cleaned_data.get('email')
qs = User.objects.filter(email=email_address)
if qs.exists():
raise forms.ValidationError("This email_id already registered")
return email_address

views.py
def employee_form(request, id=0):
if request.method == "GET":
if id == 0:
form = EmployeeForm()
else:
employee = Employee.objects.get(pk=id)
form = EmployeeForm(instance=employee)
return render(request, "users/employee_form.html", {'form': form})
else:
if id == 0:
form = EmployeeForm(request.POST)
else:
employee = Employee.objects.get(pk=id)
form = EmployeeForm(request.POST,instance= employee)
if form.is_valid():
form.save()
return redirect('/list')


employee_form.html


{% block content %}


{% csrf_token %}
{{form.fullname|as_crispy_field}}
{{form.mobile|as_crispy_field}}
{{form.email|as_crispy_field}}



{{form.emp_code|as_crispy_field}}


{{form.position|as_crispy_field}}


{{form.Department|as_crispy_field}}





{{form.password_first|as_crispy_field}}


{{form.password_again|as_crispy_field}}






<
i class="fas fa-database">
Submit



 Back to list





{% if form.error %}
{% for field in form %}
{% for error in field.error %}
 {{ errors }} 
{% endfor %}
{% endfor %}

{% for error in form.non_field_error %}
 {{ error }} 
{% endfor %}
{% endif %}




{% endblock content %}



-- 
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/6ba949b0-0fc4-443c-ba27-136754fbd1f5n%40googlegroups.com.


Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-09-04 Thread Michal Plsek
Just register post_update signal with the Model you want to "watch" to be
created/updated, and in optimal case send message to some asynchronous
queue, which will take message 15 minutes late and processes it by creating
Notification object. For example async queue = aws sqs, they even support
15min delay you want.

Dne čt 31. 8. 2023 22:11 uživatel Andréas Kühne 
napsal:

> First of all - notification - what do you mean by notification?
>
> If you mean that the user should be notified in the instance when someone
> creates / updates / deletes your models - you will need to have either
> server side events or websockets to communicate with the frontend. You
> could also poll the server (for example every 5 minutes) to check for new
> messages. These solutions would require that you have some javascript on
> the frontend.
>
> To get this working on the backend - you would then need some sort of
> changes in the save method to send the notifications to the frontend. This
> could be as simple as creating a Notification model and then just creating
> a notification every time you update a model.
>
> Regards,
>
> Andréas
>
>
> Den tis 22 aug. 2023 kl 16:02 skrev Byansi Samuel <
> samuelbyans...@gmail.com>:
>
>> My views
>> from django.shortcuts import render def auto_notification(request):
>> return render (request, "user/dashboard.html")
>>
>> My models
>> from django.db import models from django.contrib.auth.models import User
>>
>> #articles model
>>
>> class Articles(models.Model):
>> title = models.CharField(max_length=300) date= models.DateField()
>> author=models.ForeignKey(User, on_delete=models.CASCADE)
>> body=models.TextField()
>>
>> def __str__(self) -> str:
>> return self.title
>>
>> #games model
>>
>> GAME_TYPE=( ("action", "action"), ("adventure", "adventure"), ("racing",
>> "racing"), ("puzzle", "puzzle"), )
>>
>> MOV_TYPE=( ("action", "action"), ("adventure", "adventure"), ("sci-fi",
>> "sci-fi"), ("horror", "horror"), ("drama", "drama"), )
>>
>> GAME_OS=( ("Windows", "Windows"), ("Android", "Android"), )
>>
>> class Games(models.Model): name=models.CharField(max_length=50)
>> type=models.CharField(max_length=40, choices=GAME_TYPE)
>> os=models.CharField(max_length=15, choices=GAME_OS) img=models.ImageField()
>> developer=models.CharField(max_length=50)
>> version=models.CharField(max_length=10)
>> ratings=models.CharField(max_length=10) description=models.TextField()
>>
>> def __str__(self) -> str:
>> return self.name class
>>
>> Movies(models.Model): name=models.CharField(max_length=50)
>> type=models.CharField(max_length=40, choices=MOV_TYPE)
>> description=models.TextField() released=models.DateField()
>>
>> def __str__(self) -> str:
>> return self.name
>>
>> I have three models below, but l like to create a Notification System to
>> send a message to a User whenever ;
>> 1. An object is created in all those models
>> 2. An object is modified in all those models
>>
>> And l would like to add trick that it sends the Notification Message
>> after 15 minutes of publiction or creation.
>>
>> And I would like to pass the following data if available in the object ;
>> 1. the Name of the Object,
>> 2. the Image of the Object, and
>> 3. the type of the Object.
>>
>> Lastly I would like to add a :
>> 1. Notification DELETE function, that gives User a way to delete that
>> Message , not to appear in his or notification section again.
>>
>> 2. Mark as Read function, that changes the Massage Div Color
>>
>> 3. A notification Barge that displays the UNREAD Messages.
>>
>> Am requesting anyone to help me Because Am stuck , I have no where to
>> Start from. I will be on waiting your guidelines.
>>
>> --
>> 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/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com?utm_m

Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-31 Thread Andréas Kühne
First of all - notification - what do you mean by notification?

If you mean that the user should be notified in the instance when someone
creates / updates / deletes your models - you will need to have either
server side events or websockets to communicate with the frontend. You
could also poll the server (for example every 5 minutes) to check for new
messages. These solutions would require that you have some javascript on
the frontend.

To get this working on the backend - you would then need some sort of
changes in the save method to send the notifications to the frontend. This
could be as simple as creating a Notification model and then just creating
a notification every time you update a model.

Regards,

Andréas


Den tis 22 aug. 2023 kl 16:02 skrev Byansi Samuel :

> My views
> from django.shortcuts import render def auto_notification(request): return
> render (request, "user/dashboard.html")
>
> My models
> from django.db import models from django.contrib.auth.models import User
>
> #articles model
>
> class Articles(models.Model):
> title = models.CharField(max_length=300) date= models.DateField()
> author=models.ForeignKey(User, on_delete=models.CASCADE)
> body=models.TextField()
>
> def __str__(self) -> str:
> return self.title
>
> #games model
>
> GAME_TYPE=( ("action", "action"), ("adventure", "adventure"), ("racing",
> "racing"), ("puzzle", "puzzle"), )
>
> MOV_TYPE=( ("action", "action"), ("adventure", "adventure"), ("sci-fi",
> "sci-fi"), ("horror", "horror"), ("drama", "drama"), )
>
> GAME_OS=( ("Windows", "Windows"), ("Android", "Android"), )
>
> class Games(models.Model): name=models.CharField(max_length=50)
> type=models.CharField(max_length=40, choices=GAME_TYPE)
> os=models.CharField(max_length=15, choices=GAME_OS) img=models.ImageField()
> developer=models.CharField(max_length=50)
> version=models.CharField(max_length=10)
> ratings=models.CharField(max_length=10) description=models.TextField()
>
> def __str__(self) -> str:
> return self.name class
>
> Movies(models.Model): name=models.CharField(max_length=50)
> type=models.CharField(max_length=40, choices=MOV_TYPE)
> description=models.TextField() released=models.DateField()
>
> def __str__(self) -> str:
> return self.name
>
> I have three models below, but l like to create a Notification System to
> send a message to a User whenever ;
> 1. An object is created in all those models
> 2. An object is modified in all those models
>
> And l would like to add trick that it sends the Notification Message after
> 15 minutes of publiction or creation.
>
> And I would like to pass the following data if available in the object ;
> 1. the Name of the Object,
> 2. the Image of the Object, and
> 3. the type of the Object.
>
> Lastly I would like to add a :
> 1. Notification DELETE function, that gives User a way to delete that
> Message , not to appear in his or notification section again.
>
> 2. Mark as Read function, that changes the Massage Div Color
>
> 3. A notification Barge that displays the UNREAD Messages.
>
> Am requesting anyone to help me Because Am stuck , I have no where to
> Start from. I will be on waiting your guidelines.
>
> --
> 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/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCdBb5kP_eF4_CK4F%2B3ibP_PvmgJetrGJs4a7PBZfxSYGg%40mail.gmail.com.


errors am getting during running my project any help

2023-08-25 Thread Steven maithya
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> python manage.py 
runserver
C:\Python311\python.exe: can't open file 
'C:\\Users\\steve.musyoka\\Desktop\\CRM-master\\manage.py': [Errno 2] No 
such file or directory
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> cd
(en) PS C:\Users\steve.musyoka\Desktop\CRM-master> ls

-- 
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/2987c90d-d8cd-4710-9b13-a276802a088cn%40googlegroups.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
> <https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/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
>>  
>> <https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/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
>>  
>> <https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/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
> <https://groups.google.com/d/msgid/django-users/CAPifpCvYY%3D%2BFuNAYKXgoikghEYGCB90iw_24S1Ctye%3DZEJdNqg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGGqo0PSZ%2BEmttU3KkZ14EidSxPzM0JSo4Wp6m30FCRRRj8Htw%40mail.gmail.com.


Help on Error while deploying a django app on render.

2023-08-24 Thread ALINDA Fortunate
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.


Re: ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-23 Thread ivan harold
https://stackoverflow.com/questions/14543824/django-get-notified-of-all-changes-in-database

check this one out, you might find some hints or answers.

On Tuesday, August 22, 2023 at 9:03:12 AM UTC-5 Byansi Samuel wrote:

> My views 
> from django.shortcuts import render def auto_notification(request): return 
> render (request, "user/dashboard.html")
>
> My models 
> from django.db import models from django.contrib.auth.models import User
>
> #articles model 
>
> class Articles(models.Model): 
> title = models.CharField(max_length=300) date= models.DateField() 
> author=models.ForeignKey(User, on_delete=models.CASCADE) 
> body=models.TextField() 
>
> def __str__(self) -> str:
> return self.title 
>
> #games model
>
> GAME_TYPE=( ("action", "action"), ("adventure", "adventure"), ("racing", 
> "racing"), ("puzzle", "puzzle"), )
>
> MOV_TYPE=( ("action", "action"), ("adventure", "adventure"), ("sci-fi", 
> "sci-fi"), ("horror", "horror"), ("drama", "drama"), ) 
>
> GAME_OS=( ("Windows", "Windows"), ("Android", "Android"), ) 
>
> class Games(models.Model): name=models.CharField(max_length=50) 
> type=models.CharField(max_length=40, choices=GAME_TYPE) 
> os=models.CharField(max_length=15, choices=GAME_OS) img=models.ImageField() 
> developer=models.CharField(max_length=50) 
> version=models.CharField(max_length=10) 
> ratings=models.CharField(max_length=10) description=models.TextField() 
>
> def __str__(self) -> str: 
> return self.name class
>
> Movies(models.Model): name=models.CharField(max_length=50) 
> type=models.CharField(max_length=40, choices=MOV_TYPE) 
> description=models.TextField() released=models.DateField() 
>
> def __str__(self) -> str: 
> return self.name 
>
> I have three models below, but l like to create a Notification System to 
> send a message to a User whenever ; 
> 1. An object is created in all those models 
> 2. An object is modified in all those models 
>
> And l would like to add trick that it sends the Notification Message after 
> 15 minutes of publiction or creation.
>
> And I would like to pass the following data if available in the object ;
> 1. the Name of the Object,
> 2. the Image of the Object, and 
> 3. the type of the Object. 
>
> Lastly I would like to add a : 
> 1. Notification DELETE function, that gives User a way to delete that 
> Message , not to appear in his or notification section again. 
>
> 2. Mark as Read function, that changes the Massage Div Color 
>
> 3. A notification Barge that displays the UNREAD Messages. 
>
> Am requesting anyone to help me Because Am stuck , I have no where to 
> Start from. I will be on waiting your guidelines. 
>
>

-- 
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/aecadf6d-3bc4-4e9c-a1e7-5b43003ee737n%40googlegroups.com.


ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-22 Thread Byansi Samuel
My views
from django.shortcuts import render def auto_notification(request): return
render (request, "user/dashboard.html")

My models
from django.db import models from django.contrib.auth.models import User

#articles model

class Articles(models.Model):
title = models.CharField(max_length=300) date= models.DateField()
author=models.ForeignKey(User, on_delete=models.CASCADE)
body=models.TextField()

def __str__(self) -> str:
return self.title

#games model

GAME_TYPE=( ("action", "action"), ("adventure", "adventure"), ("racing",
"racing"), ("puzzle", "puzzle"), )

MOV_TYPE=( ("action", "action"), ("adventure", "adventure"), ("sci-fi",
"sci-fi"), ("horror", "horror"), ("drama", "drama"), )

GAME_OS=( ("Windows", "Windows"), ("Android", "Android"), )

class Games(models.Model): name=models.CharField(max_length=50)
type=models.CharField(max_length=40, choices=GAME_TYPE)
os=models.CharField(max_length=15, choices=GAME_OS) img=models.ImageField()
developer=models.CharField(max_length=50)
version=models.CharField(max_length=10)
ratings=models.CharField(max_length=10) description=models.TextField()

def __str__(self) -> str:
return self.name class

Movies(models.Model): name=models.CharField(max_length=50)
type=models.CharField(max_length=40, choices=MOV_TYPE)
description=models.TextField() released=models.DateField()

def __str__(self) -> str:
return self.name

I have three models below, but l like to create a Notification System to
send a message to a User whenever ;
1. An object is created in all those models
2. An object is modified in all those models

And l would like to add trick that it sends the Notification Message after
15 minutes of publiction or creation.

And I would like to pass the following data if available in the object ;
1. the Name of the Object,
2. the Image of the Object, and
3. the type of the Object.

Lastly I would like to add a :
1. Notification DELETE function, that gives User a way to delete that
Message , not to appear in his or notification section again.

2. Mark as Read function, that changes the Massage Div Color

3. A notification Barge that displays the UNREAD Messages.

Am requesting anyone to help me Because Am stuck , I have no where to Start
from. I will be on waiting your guidelines.

-- 
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/CAGQoQ3wRpg%2BcT69wqUbapHbK7KSEfwU%2BxfJ-EKRCcddY6KwtnA%40mail.gmail.com.


Re: hello forks, i need help

2023-08-17 Thread ivan harold
https://www.w3schools.com/django/django_admin_include_members.php
explore the site maybe what you are ooking for is in there 
check this one. 

On Thursday, August 17, 2023 at 11:53:00 AM UTC-5 Abdoulaye SENE wrote:

> the problem is i don't see users  in admin.i only see groups. do not know 
> why.
>
>
> Le jeu. 17 août 2023 à 16:48, Abdoulaye SENE  a 
> écrit :
>
>> thanks a lot
>>
>>
>> Le jeu. 17 août 2023 à 16:38, ivan harold  a 
>> écrit :
>>
>>> https://www.w3schools.com/django/django_admin_create_user.php 
>>> check this one out.
>>>
>>> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>>>
 i have created a group named adminis. how to create users in the group 
 using django admin

 -- 
>>> 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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/5a1d8fa0-8eeb-4502-a9dc-b6b3abbfe3f0n%40googlegroups.com.


Re: hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
the problem is i don't see users  in admin.i only see groups. do not know
why.


Le jeu. 17 août 2023 à 16:48, Abdoulaye SENE 
a écrit :

> thanks a lot
>
>
> Le jeu. 17 août 2023 à 16:38, ivan harold  a
> écrit :
>
>> https://www.w3schools.com/django/django_admin_create_user.php
>> check this one out.
>>
>> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>>
>>> i have created a group named adminis. how to create users in the group
>>> using django admin
>>>
>>> --
>> 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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/CAK9RMT3MKx9FZ7uwUwLndMgEoPYb3W8a7Otn0zTGUGWaK9G88w%40mail.gmail.com.


Re: hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
thanks a lot


Le jeu. 17 août 2023 à 16:38, ivan harold  a
écrit :

> https://www.w3schools.com/django/django_admin_create_user.php
> check this one out.
>
> On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:
>
>> i have created a group named adminis. how to create users in the group
>> using django admin
>>
>> --
> 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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%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/CAK9RMT2DRKUkiVUufEzcya%3Dh91%2BMfQuQS%2BLQhcy5J2XTG406Sw%40mail.gmail.com.


Re: hello forks, i need help

2023-08-17 Thread ivan harold
https://www.w3schools.com/django/django_admin_create_user.php 
check this one out.

On Thursday, August 17, 2023 at 8:26:29 AM UTC-5 Abdoulaye SENE wrote:

> i have created a group named adminis. how to create users in the group 
> using django admin
>
>

-- 
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/78b972b4-dee8-4a69-bc40-fd804f3dc4d3n%40googlegroups.com.


hello forks, i need help

2023-08-17 Thread Abdoulaye SENE
i have created a group named adminis. how to create users in the group 
using django admin

-- 
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/45e78c82-e392-4a3e-83ec-a0e2d7189f3fn%40googlegroups.com.


Re: final project in django - help

2023-08-16 Thread Migui Galan
im glad to help, whats the issue you are facing? you can send me a gmeet
link for the meeting

On Wed, Aug 16, 2023 at 11:31 PM kipkoech chesir 
wrote:

> yes, we can, just clarify issues and problems.
>
>
> On Wednesday, August 9, 2023 at 7:23:27 PM UTC+3 ivan harold wrote:
>
>> what help do you need?
>> Can you give any specifics so we can understand?
>>
>> On Sunday, July 16, 2023 at 10:40:09 PM UTC+8 Jun Say wrote:
>>
>>>
>>>
>>> On Sun, Jul 16, 2023 at 9:32 PM Jun Say  wrote:
>>>
>>>> Let me try.
>>>>
>>>> On Sun, Jul 16, 2023 at 6:28 AM Brian Carey  wrote:
>>>>
>>>>> A little more information please. What can't you do and what errors do
>>>>> you get?
>>>>>
>>>>> Get BlueMail for Android <https://bluemail.me>
>>>>> On Jul 16, 2023, at 03:47, Alexandru - Gabriel Ionicescu <
>>>>> ionicescu.ale...@gmail.com> wrote:
>>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> who can help me with the final project in django? in a week I have to
>>>>>> hand it over and I got into trouble with it. I can't access github.
>>>>>> Please help me.
>>>>>>
>>>>>> Tnx,
>>>>>> Alex
>>>>>>
>>>>>> --
>>>>> 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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6f0ba0af-eddf-4dc4-b349-17f338cb13abn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6f0ba0af-eddf-4dc4-b349-17f338cb13abn%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKKJMPN_J%2BRXEG3rBcBsgFqzq8-KSEqb-6Y3oYk0Cjvm6B9gkg%40mail.gmail.com.


Re: final project in django - help

2023-08-16 Thread kipkoech chesir
yes, we can, just clarify issues and problems.


On Wednesday, August 9, 2023 at 7:23:27 PM UTC+3 ivan harold wrote:

> what help do you need?
> Can you give any specifics so we can understand?
>
> On Sunday, July 16, 2023 at 10:40:09 PM UTC+8 Jun Say wrote:
>
>>
>>
>> On Sun, Jul 16, 2023 at 9:32 PM Jun Say  wrote:
>>
>>> Let me try.
>>>
>>> On Sun, Jul 16, 2023 at 6:28 AM Brian Carey  wrote:
>>>
>>>> A little more information please. What can't you do and what errors do 
>>>> you get?
>>>>
>>>> Get BlueMail for Android <https://bluemail.me> 
>>>> On Jul 16, 2023, at 03:47, Alexandru - Gabriel Ionicescu <
>>>> ionicescu.ale...@gmail.com> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> who can help me with the final project in django? in a week I have to 
>>>>> hand it over and I got into trouble with it. I can't access github.
>>>>> Please help me.
>>>>>
>>>>> Tnx,
>>>>> Alex
>>>>>
>>>>> -- 
>>>> 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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6f0ba0af-eddf-4dc4-b349-17f338cb13abn%40googlegroups.com.


Re: how to solve please help me

2023-08-10 Thread Kani Sbt
i solved that , i deleted all the databases and makemigrations and migrate
and all was done good

On Thu, 10 Aug 2023 at 18:12, Mz Gz  wrote:

> Maybe you referenced another model in your model and the referenced model
> is no more there or its name changed
>
> On Thu, 10 Aug 2023, 2:10 pm Kani Sbt,  wrote:
>
>> django.db.migrations.exceptions.InconsistentMigrationHistory: Migration
>> admin.0001_initial is applied before its dependency lottyapp.0001_initial
>> on database 'default'.
>>
>> --
>> 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/a80ac299-116f-473d-905f-cbc7943513cen%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/CAHV4E-cVm62sm_fjKMeLi0J-U9qaTyM6OSNA94%3D6TyqrppvWtw%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/CAKJFrTQY3Yy_h74_dJ54wHQtxtRRMksFM3VppaGY3SjxRrXdHQ%40mail.gmail.com.


Re: how to solve please help me

2023-08-10 Thread Mz Gz
Maybe you referenced another model in your model and the referenced model
is no more there or its name changed

On Thu, 10 Aug 2023, 2:10 pm Kani Sbt,  wrote:

> django.db.migrations.exceptions.InconsistentMigrationHistory: Migration
> admin.0001_initial is applied before its dependency lottyapp.0001_initial
> on database 'default'.
>
> --
> 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/a80ac299-116f-473d-905f-cbc7943513cen%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/CAHV4E-cVm62sm_fjKMeLi0J-U9qaTyM6OSNA94%3D6TyqrppvWtw%40mail.gmail.com.


how to solve please help me

2023-08-10 Thread Kani Sbt
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration 
admin.0001_initial is applied before its dependency lottyapp.0001_initial 
on database 'default'.

-- 
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/a80ac299-116f-473d-905f-cbc7943513cen%40googlegroups.com.


Re: any any help me to solve below error in my django project

2023-08-07 Thread Brian Gitau
change the naming of the urls like for the login from "login" to something
like "login_page"  because you are causing a clash in the views.py code
since you are importing login and your url name is the same rename the
logout too

hope that helps


On Mon, Aug 7, 2023 at 2:40 PM AKHIL KORE  wrote:

> I got the error in my below existings django files. Please solve this
> error and check all below files code.
>
> File "C:\django2pm\myvenv\lib\site-packages\django\urls\resolvers.py",
> line 725, in url_patterns
>   raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
> django.core.exceptions.ImproperlyConfigured: The included URLconf
> 'registration1.urls' does not appear to have any patterns in it. If you see
> the 'urlpatterns' variable with valid patterns in the file then the issue
> is probably caused by a circular import.
>
> registration1/settings.py
> 
> from pathlib import Path
>
> # Build paths inside the project like this: BASE_DIR / 'subdir'.
> BASE_DIR = Path(__file__).resolve().parent.parent
>
>
> # Quick-start development settings - unsuitable for production
> # See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
>
> # SECURITY WARNING: keep the secret key used in production secret!
> SECRET_KEY =
> 'django-insecure-bz1vja=h9vcnl_=j!-1*+t(j(fn!qzzx5wgy_nu_f-i5c%t'
>
> # SECURITY WARNING: don't run with debug turned on in production!
> DEBUG = True
>
> ALLOWED_HOSTS = []
>
> # Application definition
>
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'app1',
> 'crispy_forms',
> 'crispy_bootstrap5',
> 'rest_framework',
> ]
>
> MIDDLEWARE = [
> 'django.middleware.security.SecurityMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> ]
>
> ROOT_URLCONF = 'registration1.urls'
>
> TEMPLATES = [
> {
> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
> 'DIRS': ['templates'],
> 'APP_DIRS': True,
> 'OPTIONS': {
> 'context_processors': [
> 'django.template.context_processors.debug',
> 'django.template.context_processors.request',
> 'django.contrib.auth.context_processors.auth',
> 'django.contrib.messages.context_processors.messages',
> ],
> },
> },
> ]
>
> WSGI_APPLICATION = 'registration1.wsgi.application'
>
>
> # Database
> # https://docs.djangoproject.com/en/4.1/ref/settings/#databases
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'user_registration',
> 'USER': 'shamiit_database',
> 'PASSWORD': 'shamiit123',
> 'HOST': '183.83.187.12',
> 'PORT': '6013',
> }
> }
>
>
> # Password validation
> #
> https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators
>
> AUTH_PASSWORD_VALIDATORS = [
> {
> 'NAME':
> 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.MinimumLengthValidator',
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.CommonPasswordValidator',
> },
> {
> 'NAME':
> 'django.contrib.auth.password_validation.NumericPasswordValidator',
> },
> ]
>
>
> # Internationalization
> # https://docs.djangoproject.com/en/4.1/topics/i18n/
>
> LANGUAGE_CODE = 'en-us'
>
> TIME_ZONE = 'UTC'
>
> USE_I18N = True
>
> USE_TZ = True
>
>
> # Static files (CSS, JavaScript, Images)
> # https://docs.djangoproject.com/en/4.1/howto/static-files/
>
> STATIC_URL = 'static/'
> LOGIN_URL = '/login/'
>
> # Default primary key field type
> # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
>
> DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
>
> CRISPY_TEMPLATE_PACK = 'bootstrap5'
> CRISPY_ALLOWED_TEMPLATE_PACKS = 'bootstrap5'
>
> # Add this line at the bottom of the file
> AUTH_USER_MODEL = 'app1.CustomUser'
>
> EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
> EMAIL_HOST = 'smtp.gmail.com'  # Change to your email provider's SMTP
> server
> EMAIL_PORT = 587  # Change to your email provider's port
> EMAIL_USE_TLS = True  # Change to True if your email provider requires TLS
> EMAIL_HOST_USER = 'koreakhi...@gmail.com'  # Your email address
> EMAIL_HOST_PASSWORD = 'ngxfvpwoasfumnkc'  # Your email password
>
> from django.utils.translation import gettext_lazy as _
>
> PASSWORD_RESET_SUBJECT = _('Password Reset Request')
> 

any any help me to solve below error in my django project

2023-08-07 Thread AKHIL KORE
I got the error in my below existings django files. Please solve this error
and check all below files code.

File "C:\django2pm\myvenv\lib\site-packages\django\urls\resolvers.py", line
725, in url_patterns
  raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf
'registration1.urls' does not appear to have any patterns in it. If you see
the 'urlpatterns' variable with valid patterns in the file then the issue
is probably caused by a circular import.

registration1/settings.py

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY =
'django-insecure-bz1vja=h9vcnl_=j!-1*+t(j(fn!qzzx5wgy_nu_f-i5c%t'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app1',
'crispy_forms',
'crispy_bootstrap5',
'rest_framework',
]

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'registration1.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

WSGI_APPLICATION = 'registration1.wsgi.application'


# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'user_registration',
'USER': 'shamiit_database',
'PASSWORD': 'shamiit123',
'HOST': '183.83.187.12',
'PORT': '6013',
}
}


# Password validation
#
https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME':
'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


# Internationalization
# https://docs.djangoproject.com/en/4.1/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.1/howto/static-files/

STATIC_URL = 'static/'
LOGIN_URL = '/login/'

# Default primary key field type
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

CRISPY_TEMPLATE_PACK = 'bootstrap5'
CRISPY_ALLOWED_TEMPLATE_PACKS = 'bootstrap5'

# Add this line at the bottom of the file
AUTH_USER_MODEL = 'app1.CustomUser'

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'  # Change to your email provider's SMTP server
EMAIL_PORT = 587  # Change to your email provider's port
EMAIL_USE_TLS = True  # Change to True if your email provider requires TLS
EMAIL_HOST_USER = 'koreakhi...@gmail.com'  # Your email address
EMAIL_HOST_PASSWORD = 'ngxfvpwoasfumnkc'  # Your email password

from django.utils.translation import gettext_lazy as _

PASSWORD_RESET_SUBJECT = _('Password Reset Request')
PASSWORD_RESET_EMAIL_BODY = _(
'You have requested a password reset. Follow the link below to reset
your password:\n\n'
'{protocol}://{domain}{url}\n\n'
'If you did not request this reset, please ignore this email.\n'
'Your username, in case you\'ve forgotten: {username}'
)

registration1/urls.py
-
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
path('admin/', admin.site.urls),
path('', include('app1.urls')),
]

app1/models.py
-
from django.contrib.auth.models import AbstractUser

When i Host i ger=t this error ,i couldn't solve it help me please

2023-08-01 Thread Kani Sbt
  File 
"/home/sbthrmodule/public_html/venv/lib/python3.11/site-packages/MySQLdb/__init__.py",
 
line 121, in Connect
return Connection(*args, **kwargs)
   ^^^
  File 
"/home/sbthrmodule/public_html/venv/lib/python3.11/site-packages/MySQLdb/connections.py",
 
line 193, in __init__
super().__init__(*args, **kwargs2)
TypeError: 'driver' is an invalid keyword argument for connect()

-- 
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/0e4c935b-7246-45c9-8596-2730e4bf39een%40googlegroups.com.


Re: Looking to help recruiters and job candidates

2023-07-22 Thread utibe solomon
Although Im still in school but I'm ready to work

On Sat, Jul 22, 2023, 2:43 PM Dennis Kinanga 
wrote:

> Go on
>
> On Sat, Jul 22, 2023, 13:12 marvelous  wrote:
>
>>  Hello sir I have some sufficient knowledge of back end and im available
>> to help you for any price
>>
>>
>>
>>
>>
>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
>> Windows
>>
>>
>>
>> *From: *Saurav Sharma 
>> *Sent: *Tuesday, June 27, 2023 8:35 PM
>> *To: *Django users 
>> *Subject: *Re: Looking to help recruiters and job candidates
>>
>>
>>
>> So what you plan for this platform..?
>>
>> On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:
>>
>> Hey Djangonaughts! I'm looking to build a tool for recruiters to get
>> candidates interviews faster by streamlining recruiters' processes. Would
>> greatly appreciate any connects. Also, if you're looking for a software
>> engineering role (with at least 1 prior company experience for validation),
>> would also love to chat.
>>
>>
>>
>> acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol
>> <https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJkiqy5X1%2ByMC2JpAi2E-KQKX0a5PkRvjLS1OGyK%3D3cypmAUKA%40mail.gmail.com.


Re: Looking to help recruiters and job candidates

2023-07-22 Thread utibe solomon
Well I know api development with rest framework and how to integrate asgi
channels into my Django work and I can utilize JavaScript fetch requests
and websockets calls

On Sat, Jul 22, 2023, 2:43 PM Dennis Kinanga 
wrote:

> Go on
>
> On Sat, Jul 22, 2023, 13:12 marvelous  wrote:
>
>>  Hello sir I have some sufficient knowledge of back end and im available
>> to help you for any price
>>
>>
>>
>>
>>
>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
>> Windows
>>
>>
>>
>> *From: *Saurav Sharma 
>> *Sent: *Tuesday, June 27, 2023 8:35 PM
>> *To: *Django users 
>> *Subject: *Re: Looking to help recruiters and job candidates
>>
>>
>>
>> So what you plan for this platform..?
>>
>> On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:
>>
>> Hey Djangonaughts! I'm looking to build a tool for recruiters to get
>> candidates interviews faster by streamlining recruiters' processes. Would
>> greatly appreciate any connects. Also, if you're looking for a software
>> engineering role (with at least 1 prior company experience for validation),
>> would also love to chat.
>>
>>
>>
>> acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol
>> <https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJkiqy6frkyUiLFv8bY1OM_FjLtcuctf92OZJA1Q3u6V8o_phQ%40mail.gmail.com.


Re: Looking to help recruiters and job candidates

2023-07-22 Thread Dennis Kinanga
Go on

On Sat, Jul 22, 2023, 13:12 marvelous  wrote:

>  Hello sir I have some sufficient knowledge of back end and im available
> to help you for any price
>
>
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows
>
>
>
> *From: *Saurav Sharma 
> *Sent: *Tuesday, June 27, 2023 8:35 PM
> *To: *Django users 
> *Subject: *Re: Looking to help recruiters and job candidates
>
>
>
> So what you plan for this platform..?
>
> On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:
>
> Hey Djangonaughts! I'm looking to build a tool for recruiters to get
> candidates interviews faster by streamlining recruiters' processes. Would
> greatly appreciate any connects. Also, if you're looking for a software
> engineering role (with at least 1 prior company experience for validation),
> would also love to chat.
>
>
>
> acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol
> <https://groups.google.com/d/msgid/django-users/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHN7osCBFT6%2Bn9H0YiWDn66avJ4zv_G%3DYuYnMicz9SOAA6NDKw%40mail.gmail.com.


RE: Looking to help recruiters and job candidates

2023-07-22 Thread marvelous
 Hello sir I have some sufficient knowledge of back end and im available to help you for any price  Sent from Mail for Windows From: Saurav SharmaSent: Tuesday, June 27, 2023 8:35 PMTo: Django usersSubject: Re: Looking to help recruiters and job candidates So what you plan for this platform..?On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:Hey Djangonaughts! I'm looking to build a tool for recruiters to get candidates interviews faster by streamlining recruiters' processes. Would greatly appreciate any connects. Also, if you're looking for a software engineering role (with at least 1 prior company experience for validation), would also love to chat. acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%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/39AE2D45-6830-447D-AADB-48A511055D5E%40hxcore.ol.


Re: final project in django - help

2023-07-16 Thread Jun Say
On Sun, Jul 16, 2023 at 9:32 PM Jun Say  wrote:

> Let me try.
>
> On Sun, Jul 16, 2023 at 6:28 AM Brian Carey  wrote:
>
>> A little more information please. What can't you do and what errors do
>> you get?
>>
>> Get BlueMail for Android <https://bluemail.me>
>> On Jul 16, 2023, at 03:47, Alexandru - Gabriel Ionicescu <
>> ionicescu.alexandrugabr...@gmail.com> wrote:
>>>
>>> Hello,
>>>
>>> who can help me with the final project in django? in a week I have to
>>> hand it over and I got into trouble with it. I can't access github.
>>> Please help me.
>>>
>>> Tnx,
>>> Alex
>>>
>>> --
>> 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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com
>> <https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJyUeCS5iXD9UFqDHOQLN1KS3AkMTPeeCGV%3DLGsRn1BMRuAYog%40mail.gmail.com.


Re: final project in django - help

2023-07-16 Thread Jun Say
Let me try.

On Sun, Jul 16, 2023 at 6:28 AM Brian Carey  wrote:

> A little more information please. What can't you do and what errors do you
> get?
>
> Get BlueMail for Android <https://bluemail.me>
> On Jul 16, 2023, at 03:47, Alexandru - Gabriel Ionicescu <
> ionicescu.alexandrugabr...@gmail.com> wrote:
>>
>> Hello,
>>
>> who can help me with the final project in django? in a week I have to
>> hand it over and I got into trouble with it. I can't access github.
>> Please help me.
>>
>> Tnx,
>> Alex
>>
>> --
> 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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com
> <https://groups.google.com/d/msgid/django-users/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJyUeCS5oC3zHoiDcN8LZ31_JKpi2Oo97hOfPHPchTRTGooeeA%40mail.gmail.com.


Re: final project in django - help

2023-07-16 Thread Brian Carey
A little more information please. What can't you do and what errors do you get?

⁣Get BlueMail for Android ​

On Jul 16, 2023, 03:47, at 03:47, Alexandru - Gabriel Ionicescu 
 wrote:
>Hello,
>
>who can help me with the final project in django? in a week I have to
>hand
>it over and I got into trouble with it. I can't access github.
>Please help me.
>
>Tnx,
>Alex
>
>-- 
>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/CAKsnQnS6KtEXw_aDy3mUq1sywOHORC7Tv18%3D%3DxD9UthL-P7aCg%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/d50156e2-4df0-443b-ad0c-66ab4ba39744%40gmail.com.


final project in django - help

2023-07-16 Thread Alexandru - Gabriel Ionicescu
Hello,

who can help me with the final project in django? in a week I have to hand
it over and I got into trouble with it. I can't access github.
Please help me.

Tnx,
Alex

-- 
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/CAKsnQnS6KtEXw_aDy3mUq1sywOHORC7Tv18%3D%3DxD9UthL-P7aCg%40mail.gmail.com.


Re: need help

2023-07-05 Thread DieHardMan 300
On the server, change the following in settings
DEBUG = True# django will tell what cause the error 
instead of error500
ALLOWED_HOST = ["*"]# this allow all hosts but you should do this only 
for testing
most of the time, error 500 often cause from database connection 
problems in server side, you should create new user in database and give 
permissions to that user (do no use root user)
ในวันที่ วันพฤหัสบดีที่ 6 กรกฎาคม ค.ศ. 2023 เวลา 0 นาฬิกา 49 นาที 56 วินาที 
UTC+7 Bouka Largent เขียนว่า:

> hello 
>
> Le mar. 4 juil. 2023, 4:44, Theresa Taye  a écrit :
>
>> Hello,
>>
>> You see a Server error because Debug is set to False. To know what the 
>> actual error is, turn it back to True. Then when you are done debugging you 
>> can change that especially if you are pushing to production.
>>
>> On Tue, 4 Jul 2023 at 16:21, Abdoulaye SENE  
>> wrote:
>>
>>> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>>>
>>> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>>>
>>>> Sorry I meant turn 
>>>> DEBUG = True
>>>>
>>>>
>>>>
>>>>
>>>> Best Regards,
>>>>
>>>> Albert Ashaba Aheebwa
>>>> +256 781 435857 <+256%20781%20435857>
>>>>
>>>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, <
>>>> ashabaahe...@gmail.com> wrote:
>>>>
>>>>> Go to your settings.py and look for allowed_hosts and make it 
>>>>> ALLOWED_HOSTS = ["*"]
>>>>>
>>>>> or better yet, if you are in development, turn
>>>>> DEBUG = False
>>>>>
>>>>>
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> Albert Ashaba Aheebwa
>>>>> +256 781 435857 <+256%20781%20435857>
>>>>>
>>>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE,  
>>>>> wrote:
>>>>>
>>>>>> hello,
>>>>>> while programming, i see this problem : " CommandError: You must set 
>>>>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>>>>> i wonder if someone can help me to fix it.
>>>>>>
>>>>>> -- 
>>>>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8663160e-338a-44f6-97df-9c6fab6b1cecn%40googlegroups.com.


Re: need help

2023-07-05 Thread Bouka Largent
hello

Le mar. 4 juil. 2023, 4:44, Theresa Taye  a
écrit :

> Hello,
>
> You see a Server error because Debug is set to False. To know what the
> actual error is, turn it back to True. Then when you are done debugging you
> can change that especially if you are pushing to production.
>
> On Tue, 4 Jul 2023 at 16:21, Abdoulaye SENE 
> wrote:
>
>> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>>
>> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>>
>>> Sorry I meant turn
>>> DEBUG = True
>>>
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>>> wrote:
>>>
>>>> Go to your settings.py and look for allowed_hosts and make it
>>>> ALLOWED_HOSTS = ["*"]
>>>>
>>>> or better yet, if you are in development, turn
>>>> DEBUG = False
>>>>
>>>>
>>>>
>>>> Best Regards,
>>>>
>>>> Albert Ashaba Aheebwa
>>>> +256 781 435857 <+256%20781%20435857>
>>>>
>>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
>>>> wrote:
>>>>
>>>>> hello,
>>>>> while programming, i see this problem : " CommandError: You must set
>>>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>>>> i wonder if someone can help me to fix it.
>>>>>
>>>>> --
>>>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>>>> .
>>>>>
>>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGFr1Ekoi7Pudgm0GRzPK7eVLkMoQz-tkmS%2Bc20gAhrZHwJe_Q%40mail.gmail.com.


Re: need help

2023-07-04 Thread Theresa Taye
Hello,

You see a Server error because Debug is set to False. To know what the
actual error is, turn it back to True. Then when you are done debugging you
can change that especially if you are pushing to production.

On Tue, 4 Jul 2023 at 16:21, Abdoulaye SENE 
wrote:

> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>
> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>
>> Sorry I meant turn
>> DEBUG = True
>>
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>> wrote:
>>
>>> Go to your settings.py and look for allowed_hosts and make it
>>> ALLOWED_HOSTS = ["*"]
>>>
>>> or better yet, if you are in development, turn
>>> DEBUG = False
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
>>> wrote:
>>>
>>>> hello,
>>>> while programming, i see this problem : " CommandError: You must set
>>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>>> i wonder if someone can help me to fix it.
>>>>
>>>> --
>>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAENBRfMNWVA-_jm0eUiDGSL-1kQJvDsLnXGjZ870aivXFEDfCA%40mail.gmail.com.


Re: need help

2023-07-04 Thread ALBERT ASHABA AHEEBWA
Server Error can be caused by many issues ranging from database queries to
wrong urls.

Turn debug to true and see what reasons are given .
Are you in production or development?



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Tue, 4 Jul 2023, 18:21 Abdoulaye SENE, 
wrote:

> thanks for the help. but after  writing ["*"] i see   Server Error (500)
>
> Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
>
>> Sorry I meant turn
>> DEBUG = True
>>
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, 
>> wrote:
>>
>>> Go to your settings.py and look for allowed_hosts and make it
>>> ALLOWED_HOSTS = ["*"]
>>>
>>> or better yet, if you are in development, turn
>>> DEBUG = False
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Albert Ashaba Aheebwa
>>> +256 781 435857 <+256%20781%20435857>
>>>
>>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
>>> wrote:
>>>
>>>> hello,
>>>> while programming, i see this problem : " CommandError: You must set
>>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>>> i wonder if someone can help me to fix it.
>>>>
>>>> --
>>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAQecPeCb6HJMvnC5u_f5ORti50z%2BDEC4APAh-6GAGSDsWCO5w%40mail.gmail.com.


Re: need help

2023-07-04 Thread Abdoulaye SENE
thanks for the help. but after  writing ["*"] i see   Server Error (500)

Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :

> Sorry I meant turn 
> DEBUG = True
>
>
>
>
> Best Regards,
>
> Albert Ashaba Aheebwa
> +256 781 435857 <+256%20781%20435857>
>
> On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA,  
> wrote:
>
>> Go to your settings.py and look for allowed_hosts and make it 
>> ALLOWED_HOSTS = ["*"]
>>
>> or better yet, if you are in development, turn
>> DEBUG = False
>>
>>
>>
>> Best Regards,
>>
>> Albert Ashaba Aheebwa
>> +256 781 435857 <+256%20781%20435857>
>>
>> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE,  
>> wrote:
>>
>>> hello,
>>> while programming, i see this problem : " CommandError: You must set 
>>> settings.ALLOWED_HOSTS if DEBUG is False."
>>> i wonder if someone can help me to fix it.
>>>
>>> -- 
>>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com.


Re: need help

2023-07-04 Thread ALBERT ASHABA AHEEBWA
Sorry I meant turn
DEBUG = True



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, <
ashabaaheebwaalb...@gmail.com> wrote:

> Go to your settings.py and look for allowed_hosts and make it
> ALLOWED_HOSTS = ["*"]
>
> or better yet, if you are in development, turn
> DEBUG = False
>
>
>
> Best Regards,
>
> Albert Ashaba Aheebwa
> +256 781 435857
>
> On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
> wrote:
>
>> hello,
>> while programming, i see this problem : " CommandError: You must set
>> settings.ALLOWED_HOSTS if DEBUG is False."
>> i wonder if someone can help me to fix it.
>>
>> --
>> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAQecPc7gSzAvgrWSurng%2BYsRvVjzmVwVYfeY5A7ofGPi093Hw%40mail.gmail.com.


Re: need help

2023-07-04 Thread ALBERT ASHABA AHEEBWA
Go to your settings.py and look for allowed_hosts and make it
ALLOWED_HOSTS = ["*"]

or better yet, if you are in development, turn
DEBUG = False



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, 
wrote:

> hello,
> while programming, i see this problem : " CommandError: You must set
> settings.ALLOWED_HOSTS if DEBUG is False."
> i wonder if someone can help me to fix it.
>
> --
> 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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAQecPf-j1qSEO2%2BmzdqB-8HqZBG1%2ByVypDv7gD_yLDXR7_xtQ%40mail.gmail.com.


need help

2023-07-04 Thread Abdoulaye SENE
hello,
while programming, i see this problem : " CommandError: You must set 
settings.ALLOWED_HOSTS if DEBUG is False."
i wonder if someone can help me to fix it.

-- 
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/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com.


Re: Looking to help recruiters and job candidates

2023-06-27 Thread Saurav Sharma
So what you plan for this platform..?

On Tuesday, June 27, 2023 at 12:18:46 AM UTC+5:30 Andrew Wang wrote:

> Hey Djangonaughts! I'm looking to build a tool for recruiters to get 
> candidates interviews faster by streamlining recruiters' processes. Would 
> greatly appreciate any connects. Also, if you're looking for a software 
> engineering role (with at least 1 prior company experience for validation), 
> would also love to chat.
>
> acwangpyt...@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/da6cb62c-04cf-4c79-b043-b57769d57021n%40googlegroups.com.


Re: Looking to help recruiters and job candidates

2023-06-26 Thread Raphael Polanco
Hello, Django-Users.

Just a reminder that disclosing personal information can expose you to
real-world risks. Divulging even small amounts of personal information in
an unsecured forum may render you vulnerable to identity theft,
financial attacks, and even online grooming if you share it with
individuals that may harbor malicious intentions.

Thank you.

R. Polanco
@raphaelpolanco
#zerotrust


On Mon, Jun 26, 2023 at 2:48 PM Andrew Wang  wrote:

> Hey Djangonaughts! I'm looking to build a tool for recruiters to get
> candidates interviews faster by streamlining recruiters' processes. Would
> greatly appreciate any connects. Also, if you're looking for a software
> engineering role (with at least 1 prior company experience for validation),
> would also love to chat.
>
> acwangpyt...@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/cbbacf02-69a0-48db-88c6-44fa2ea8cb8dn%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/CAJoAtSkk1FHsoBBXvM_Z8zP%2BpRk6nonfgPQY0Hd4RDCx0Kuenw%40mail.gmail.com.


Looking to help recruiters and job candidates

2023-06-26 Thread Andrew Wang
Hey Djangonaughts! I'm looking to build a tool for recruiters to get 
candidates interviews faster by streamlining recruiters' processes. Would 
greatly appreciate any connects. Also, if you're looking for a software 
engineering role (with at least 1 prior company experience for validation), 
would also love to chat.

acwangpyt...@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/cbbacf02-69a0-48db-88c6-44fa2ea8cb8dn%40googlegroups.com.


Re: Can any one help me with this question

2023-06-22 Thread Annadatha Rao
Hi,

Can you please recommend any ui components to use with django, like graphs,
datagrid etc.

With regards,

Annadatha.

On Sun, Jun 18, 2023, 8:59 PM Annadatha Rao  wrote:

> Dear All,
>
> Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
> please show me an example if works.
>
> Thank you for your support,
> Annadatha.
>

-- 
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/CAFtPNJxasiQaQJdb0swQ%2B6O2YqkNCHzoC0xHSLVMQe9rNJR0gw%40mail.gmail.com.


Re: Can any one help me with this question

2023-06-22 Thread Annadatha Rao
Thank you for your reply.

Annadatha.

On Thu, Jun 22, 2023, 10:45 PM Praveen Chaudhary 
wrote:

> Hi Annadatha,
>
> I'm glad to hear that upgrading to Oracle 21c worked for you. As for your
> question about working without migrations in Django, it's certainly
> possible but it's important to understand the implication and trade-offs.
>
> Django migrations provide a way to manage and apply changes to your
> database schema over time, allowing for version control and easy deployment
> of database changes. They help maintain data integrity and make it easier
> to collaborate with other developers.
>
> However, if you prefer not to use migrations, you can disable them in
> django by setting the 'MIGRATIIN_MODULES' setting to an empty dictionary in
> your projects settings.py file:
>
>  MIGRATION_MODULES = {}
>
>
> By doing this, you'll essentially disable the migration framework, and
> Django won't generate or apply migrations. Instead, you'll need to manually
> manage your database schema changes, which can be more error-prone and less
> convenient, especially in collaborative projects.
>
> Keep in mind the following considerations if you decide to work without
> migrations:
>
> 1. Database schema management: You'll need to manually create, modify, and
> delete database tables, columns, and other schema elements as needed. This
> requires careful coordination and communication between developers working
> on the project.
>
> 2. Data integrity: Migrations help ensure data integrity during schema
> changes by providing a way to define and execute data transformations.
> Without migrations, you'll need to handle data migrations and
> transformations manually, which can be challenging and error-prone.
>
> 3. Deployment and version control: Migrations provide a structured way to
> apply schema changes to your database during deployment. Without
> migrations, you'll need to find alternative approaches for managing
> database changes in different environments and version controlling those
> changes.
>
> Ultimately, the decision to use or not use migrations depends on your
> specific requirements, project complexity, and team collaboration. If
> you're working on a small, personal project with a simple schema and
> limited changes, managing the database schema manually might be feasible.
> However, for larger projects or teams, migrations can provide significant
> benefits in terms of maintainability, collaboration, and data integrity.
>
> I hope this helps you make an informed decision. Let me know if you have
> any further questions!
>
> Best regards
> Prabin Chaudhary
> +977-9840193890
> *https://www.linkedin.com/in/icedreamerpraveen/
> <https://www.linkedin.com/in/icedreamerpraveen/>*
> Software Engineer | Youth Innovation Lab
>
> On Thu, 22 Jun 2023, 7:55 pm Annadatha Rao, 
> wrote:
>
>> Hi  Prabin,
>>
>> Thank you, it worked when I upgraded db to 21c (oracle), thank you for
>> your help. Small question, can I work without migrations, some have I hate
>> migrations being a legacy programmer from (Cobol days). I value your
>> opinion.
>>
>> Thank you,
>> ANNADATHA.
>>
>> On Sun, Jun 18, 2023 at 9:19 PM Praveen Chaudhary <
>> prabinchy1...@gmail.com> wrote:
>>
>>> Yes, Django migrations can work with Oracle 11.2 using the python-oracle
>>> database driver. However, it's important to note that the python-oracle
>>> package is not an official Oracle-provided driver. The official driver is
>>> called cx_Oracle, which is widely used for connecting Django to Oracle
>>> databases.
>>>
>>> Here's an example of how Django migrations can work with Oracle 11.2
>>> using cx_Oracle:
>>>
>>> 1. Install the cx_Oracle package using pip:
>>>  pip install cx_Oracle
>>> 2.Update your Django project's settings.py file to include the Oracle
>>> database configuration:
>>>  DATABASES = {
>>> 'default': {
>>> 'ENGINE': 'django.db.backends.oracle',
>>> 'NAME': 'your_database_name',
>>> 'USER': 'your_username',
>>> 'PASSWORD': 'your_password',
>>> 'HOST': 'your_host',
>>> 'PORT': 'your_port',
>>> }
>>> }
>>>
>>> Replace the 'your_database_name', 'your_username', 'your_password',
>>> 'your_host', and 'your_port' with the appropriate values for your
>>> Oracle database.
>>> 3.Define your Django models in the models.py file.
>>> 4.Generate and apply the migrations using Django's makemigrations and
>>> migrate commands:
>>>
&g

Re: Can any one help me with this question

2023-06-22 Thread Praveen Chaudhary
Hi Annadatha,

I'm glad to hear that upgrading to Oracle 21c worked for you. As for your
question about working without migrations in Django, it's certainly
possible but it's important to understand the implication and trade-offs.

Django migrations provide a way to manage and apply changes to your
database schema over time, allowing for version control and easy deployment
of database changes. They help maintain data integrity and make it easier
to collaborate with other developers.

However, if you prefer not to use migrations, you can disable them in
django by setting the 'MIGRATIIN_MODULES' setting to an empty dictionary in
your projects settings.py file:

 MIGRATION_MODULES = {}


By doing this, you'll essentially disable the migration framework, and
Django won't generate or apply migrations. Instead, you'll need to manually
manage your database schema changes, which can be more error-prone and less
convenient, especially in collaborative projects.

Keep in mind the following considerations if you decide to work without
migrations:

1. Database schema management: You'll need to manually create, modify, and
delete database tables, columns, and other schema elements as needed. This
requires careful coordination and communication between developers working
on the project.

2. Data integrity: Migrations help ensure data integrity during schema
changes by providing a way to define and execute data transformations.
Without migrations, you'll need to handle data migrations and
transformations manually, which can be challenging and error-prone.

3. Deployment and version control: Migrations provide a structured way to
apply schema changes to your database during deployment. Without
migrations, you'll need to find alternative approaches for managing
database changes in different environments and version controlling those
changes.

Ultimately, the decision to use or not use migrations depends on your
specific requirements, project complexity, and team collaboration. If
you're working on a small, personal project with a simple schema and
limited changes, managing the database schema manually might be feasible.
However, for larger projects or teams, migrations can provide significant
benefits in terms of maintainability, collaboration, and data integrity.

I hope this helps you make an informed decision. Let me know if you have
any further questions!

Best regards
Prabin Chaudhary
+977-9840193890
*https://www.linkedin.com/in/icedreamerpraveen/
<https://www.linkedin.com/in/icedreamerpraveen/>*
Software Engineer | Youth Innovation Lab

On Thu, 22 Jun 2023, 7:55 pm Annadatha Rao,  wrote:

> Hi  Prabin,
>
> Thank you, it worked when I upgraded db to 21c (oracle), thank you for
> your help. Small question, can I work without migrations, some have I hate
> migrations being a legacy programmer from (Cobol days). I value your
> opinion.
>
> Thank you,
> ANNADATHA.
>
> On Sun, Jun 18, 2023 at 9:19 PM Praveen Chaudhary 
> wrote:
>
>> Yes, Django migrations can work with Oracle 11.2 using the python-oracle
>> database driver. However, it's important to note that the python-oracle
>> package is not an official Oracle-provided driver. The official driver is
>> called cx_Oracle, which is widely used for connecting Django to Oracle
>> databases.
>>
>> Here's an example of how Django migrations can work with Oracle 11.2
>> using cx_Oracle:
>>
>> 1. Install the cx_Oracle package using pip:
>>  pip install cx_Oracle
>> 2.Update your Django project's settings.py file to include the Oracle
>> database configuration:
>>  DATABASES = {
>> 'default': {
>> 'ENGINE': 'django.db.backends.oracle',
>> 'NAME': 'your_database_name',
>> 'USER': 'your_username',
>> 'PASSWORD': 'your_password',
>> 'HOST': 'your_host',
>> 'PORT': 'your_port',
>> }
>> }
>>
>> Replace the 'your_database_name', 'your_username', 'your_password',
>> 'your_host', and 'your_port' with the appropriate values for your Oracle
>> database.
>> 3.Define your Django models in the models.py file.
>> 4.Generate and apply the migrations using Django's makemigrations and
>> migrate commands:
>>
>> These commands will generate the necessary SQL statements based on your
>> models and apply them to the Oracle database.
>>
>> Please note that the example assumes you have already set up Oracle 11.2
>> and have the necessary Oracle client software installed on your machine.
>>
>> It's also important to ensure that your version of Django is compatible
>> with Oracle 11.2. Refer to the Django documentation and the documentation
>> of the cx_Oracle package for any specific requirements or considerations
>> when working with Oracle databas

Re: Can any one help me with this question

2023-06-22 Thread Annadatha Rao
Hi  Prabin,

Thank you, it worked when I upgraded db to 21c (oracle), thank you for your
help. Small question, can I work without migrations, some have I hate
migrations being a legacy programmer from (Cobol days). I value your
opinion.

Thank you,
ANNADATHA.

On Sun, Jun 18, 2023 at 9:19 PM Praveen Chaudhary 
wrote:

> Yes, Django migrations can work with Oracle 11.2 using the python-oracle
> database driver. However, it's important to note that the python-oracle
> package is not an official Oracle-provided driver. The official driver is
> called cx_Oracle, which is widely used for connecting Django to Oracle
> databases.
>
> Here's an example of how Django migrations can work with Oracle 11.2 using
> cx_Oracle:
>
> 1. Install the cx_Oracle package using pip:
>  pip install cx_Oracle
> 2.Update your Django project's settings.py file to include the Oracle
> database configuration:
>  DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.oracle',
> 'NAME': 'your_database_name',
> 'USER': 'your_username',
> 'PASSWORD': 'your_password',
> 'HOST': 'your_host',
> 'PORT': 'your_port',
> }
> }
>
> Replace the 'your_database_name', 'your_username', 'your_password',
> 'your_host', and 'your_port' with the appropriate values for your Oracle
> database.
> 3.Define your Django models in the models.py file.
> 4.Generate and apply the migrations using Django's makemigrations and
> migrate commands:
>
> These commands will generate the necessary SQL statements based on your
> models and apply them to the Oracle database.
>
> Please note that the example assumes you have already set up Oracle 11.2
> and have the necessary Oracle client software installed on your machine.
>
> It's also important to ensure that your version of Django is compatible
> with Oracle 11.2. Refer to the Django documentation and the documentation
> of the cx_Oracle package for any specific requirements or considerations
> when working with Oracle databases.
>
> Remember to replace 'your_database_name', 'your_username', 'your_password',
> 'your_host', and 'your_port' with the appropriate values for your Oracle
> database configuration.
>
> Prabin Chaudhary
> +977-9840193890
> *https://www.linkedin.com/in/icedreamerpraveen/
> <https://www.linkedin.com/in/icedreamerpraveen/>*
> Software Engineer | Youth Innovation Lab
>
>
> On Sun, 18 Jun 2023 at 21:15, Annadatha Rao 
> wrote:
>
>> Dear All,
>>
>> Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
>> please show me an example if works.
>>
>> Thank you for your support,
>> Annadatha.
>>
>> --
>> 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/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAN9B8Z3itg0bvV8wzoNoAkJiF9FVZ%3DAP2Z2aLxRreYxVVki1_w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAN9B8Z3itg0bvV8wzoNoAkJiF9FVZ%3DAP2Z2aLxRreYxVVki1_w%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFtPNJwWEh%2BrqVMLemRdMi0__UGp2ZJg-%2B6Ee2K-U%2B8VJvgKcw%40mail.gmail.com.


Re: Can any one help me with this question

2023-06-18 Thread Annadatha Rao
Thank you very much praveen, I will try and let you know.

Annadatja




On Sun, Jun 18, 2023, 9:19 PM Praveen Chaudhary 
wrote:

> Yes, Django migrations can work with Oracle 11.2 using the python-oracle
> database driver. However, it's important to note that the python-oracle
> package is not an official Oracle-provided driver. The official driver is
> called cx_Oracle, which is widely used for connecting Django to Oracle
> databases.
>
> Here's an example of how Django migrations can work with Oracle 11.2 using
> cx_Oracle:
>
> 1. Install the cx_Oracle package using pip:
>  pip install cx_Oracle
> 2.Update your Django project's settings.py file to include the Oracle
> database configuration:
>  DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.oracle',
> 'NAME': 'your_database_name',
> 'USER': 'your_username',
> 'PASSWORD': 'your_password',
> 'HOST': 'your_host',
> 'PORT': 'your_port',
> }
> }
>
> Replace the 'your_database_name', 'your_username', 'your_password',
> 'your_host', and 'your_port' with the appropriate values for your Oracle
> database.
> 3.Define your Django models in the models.py file.
> 4.Generate and apply the migrations using Django's makemigrations and
> migrate commands:
>
> These commands will generate the necessary SQL statements based on your
> models and apply them to the Oracle database.
>
> Please note that the example assumes you have already set up Oracle 11.2
> and have the necessary Oracle client software installed on your machine.
>
> It's also important to ensure that your version of Django is compatible
> with Oracle 11.2. Refer to the Django documentation and the documentation
> of the cx_Oracle package for any specific requirements or considerations
> when working with Oracle databases.
>
> Remember to replace 'your_database_name', 'your_username', 'your_password',
> 'your_host', and 'your_port' with the appropriate values for your Oracle
> database configuration.
>
> Prabin Chaudhary
> +977-9840193890
> *https://www.linkedin.com/in/icedreamerpraveen/
> *
> Software Engineer | Youth Innovation Lab
>
>
> On Sun, 18 Jun 2023 at 21:15, Annadatha Rao 
> wrote:
>
>> Dear All,
>>
>> Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
>> please show me an example if works.
>>
>> Thank you for your support,
>> Annadatha.
>>
>> --
>> 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/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%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/CAN9B8Z3itg0bvV8wzoNoAkJiF9FVZ%3DAP2Z2aLxRreYxVVki1_w%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/CAFtPNJzEptw-pUkaDnkfzdew4%2BMicfibfCx4e10rCpZNZ%3D%2BYXw%40mail.gmail.com.


Re: Can any one help me with this question

2023-06-18 Thread Praveen Chaudhary
Yes, Django migrations can work with Oracle 11.2 using the python-oracle
database driver. However, it's important to note that the python-oracle
package is not an official Oracle-provided driver. The official driver is
called cx_Oracle, which is widely used for connecting Django to Oracle
databases.

Here's an example of how Django migrations can work with Oracle 11.2 using
cx_Oracle:

1. Install the cx_Oracle package using pip:
 pip install cx_Oracle
2.Update your Django project's settings.py file to include the Oracle
database configuration:
 DATABASES = {
'default': {
'ENGINE': 'django.db.backends.oracle',
'NAME': 'your_database_name',
'USER': 'your_username',
'PASSWORD': 'your_password',
'HOST': 'your_host',
'PORT': 'your_port',
}
}

Replace the 'your_database_name', 'your_username', 'your_password',
'your_host', and 'your_port' with the appropriate values for your Oracle
database.
3.Define your Django models in the models.py file.
4.Generate and apply the migrations using Django's makemigrations and
migrate commands:

These commands will generate the necessary SQL statements based on your
models and apply them to the Oracle database.

Please note that the example assumes you have already set up Oracle 11.2
and have the necessary Oracle client software installed on your machine.

It's also important to ensure that your version of Django is compatible
with Oracle 11.2. Refer to the Django documentation and the documentation
of the cx_Oracle package for any specific requirements or considerations
when working with Oracle databases.

Remember to replace 'your_database_name', 'your_username', 'your_password',
'your_host', and 'your_port' with the appropriate values for your Oracle
database configuration.

Prabin Chaudhary
+977-9840193890
*https://www.linkedin.com/in/icedreamerpraveen/
*
Software Engineer | Youth Innovation Lab


On Sun, 18 Jun 2023 at 21:15, Annadatha Rao  wrote:

> Dear All,
>
> Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
> please show me an example if works.
>
> Thank you for your support,
> Annadatha.
>
> --
> 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/CAFtPNJw9wQgAo2jCFEs6undCf9FZ_oqww9kZWKLLaJAMGyoNaA%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/CAN9B8Z3itg0bvV8wzoNoAkJiF9FVZ%3DAP2Z2aLxRreYxVVki1_w%40mail.gmail.com.


Can any one help me with this question

2023-06-18 Thread Annadatha Rao
Dear All,

Do DJANGO migrations work with Oracle 11.2 with python-oracle db driver,
please show me an example if works.

Thank you for your support,
Annadatha.

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


Re: can someone help me why my static files is not being rendered?

2023-06-17 Thread Mohammad Sadegh
> Yes send message to my account

-- 
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/CALa2QEPLXnwn6bRDWgjYsEC_3kV0qVYh3htN9iyzs%2Brie2XaTA%40mail.gmail.com.


Re: can someone help me why my static files is not being rendered?

2023-06-16 Thread Aspersh Upadhyay
Thanks a lot to Makan Dianka and everyone who replied to my question. Your 
help was greatly appreciated. I was able to solve the problem using Makan 
Dianka's solution. 
On Friday, June 16, 2023 at 9:00:20 AM UTC+5:30 Makan Dianka wrote:

> It is :
>
> STATICFILES_DIRS=[
>  .
> ]
>
> Not :
>
> STATICFILES_DIR=[
>  .
> ]
>
> Just add S in the end of DIR like DIRS and make sur u create static folder 
> in your project root.
>
>
> Le jeu. 15 juin 2023 à 16:52, Ngaga Dancan  a 
> écrit :
>
>> Use load static first before you use extends 
>>
>>
>> On Thu, Jun 15, 2023, 16:52 Prosper Lekia  wrote:
>>
>>> Where is the Python.png located?
>>>
>>> From your code, it should be directly in your static folder not a 
>>> subfolder. So verify your file structure first. If every is in order, 
>>> confirm if whitenoise is installed, and been added to your MiddleWare.
>>>
>>> On Thu, Jun 15, 2023, 14:33 Aspersh Upadhyay  
>>> wrote:
>>>
>>>> my settings.py 
>>>>
>>>> STATIC_URL = 'static/'
>>>>
>>>> STATICFILES_DIR = [
>>>> BASE_DIR / "static"
>>>> ]
>>>>
>>>> Template where I am trying to load static files
>>>>
>>>> {% extends 'base.html' %} 
>>>> {% load static %}
>>>>
>>>> {% block title %} 
>>>>   Issue With Django static files
>>>> {%endblock title %} 
>>>> {% block body %}
>>>> 
>>>>   
>>>> >>> src="{% static 'Python.png' %}">
>>>>   
>>>> 
>>>>
>>>> terminal throwing me 404 see this 
>>>>
>>>> "GET /static/Python.png HTTP/1.1" 404 1789
>>>>
>>>> I hope here I will get my solution for this.
>>>>
>>>> -- 
>>>> 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/54b813cc-58f4-4cbe-80af-a427f063fbb2n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/django-users/54b813cc-58f4-4cbe-80af-a427f063fbb2n%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAAzh8pK%3DxH0GTm2MdLi1bwD%3DU8u%3D9z5MEf3os1qBNyVzWKCtvg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAAzh8pK%3DxH0GTm2MdLi1bwD%3DU8u%3D9z5MEf3os1qBNyVzWKCtvg%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f566de2b-7eca-425a-899d-1615bba77eafn%40googlegroups.com.


  1   2   3   4   5   6   7   8   9   10   >