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


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: 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: 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/
> *
> 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:
>>>
>>> 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.
>>>

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/
*
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 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/
>> 

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

>>> -- 
>>> You received this message because you are subscribed 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
>>>  
>>> 
>>> .
>>>
>> -- 
>> You received this message because you are subscribed 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
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 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.


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

2023-06-15 Thread Makan Dianka
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 <
>> aspershupadhyay.deityr...@gmail.com> 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+unsubscr...@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
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%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/CAAzh8pK%3DxH0GTm2MdLi1bwD%3DU8u%3D9z5MEf3os1qBNyVzWKCtvg%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/CABePkdaZWAUt6hoM2LBD2mGSvO%3D-gLQ77DK2Cf1fSFNzNvzkBw%40mail.gmail.com.


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

2023-06-15 Thread Ngaga Dancan
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 <
> aspershupadhyay.deityr...@gmail.com> 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+unsubscr...@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
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%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/CAAzh8pK%3DxH0GTm2MdLi1bwD%3DU8u%3D9z5MEf3os1qBNyVzWKCtvg%40mail.gmail.com.


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

2023-06-15 Thread ALBERT ASHABA AHEEBWA
According to your settings, the `Python.png` file should be inside `static`
on the same level as `manage.py`.

|---static /
 |-- Python.png
|--manage.py
|--

The file structure of almost that kind. If you're in development and this
is a practice thing, you don't need `whitenoise` just yet.

On Thu, Jun 15, 2023 at 4:53 PM 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 <
> aspershupadhyay.deityr...@gmail.com> 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+unsubscr...@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
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALGeGE2kXEJ77bEAQY-eQA588PAJsM2ssUicpJsDrxdz8V2g_A%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/CAAQecPcVVGArR8Dq4hE%3DzOStN-itUT9WRGkwfbnsoEhxEfGPJQ%40mail.gmail.com.


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

2023-06-15 Thread Prosper Lekia
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 <
aspershupadhyay.deityr...@gmail.com> 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+unsubscr...@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
> 
> .
>

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


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

2023-06-15 Thread Aspersh Upadhyay
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 %}

  

  


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+unsubscr...@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.


RE: Please help me solving this error

2023-05-24 Thread prdpchowdhary
My code is import re iine = “My name is Bahtta. I want to learn”print(re.findall('[aeiou]+', line))And is it is running okSent from Mail for Windows From: Ramesh BhattaSent: Wednesday, May 24, 2023 6:41 AMTo: django-users@googlegroups.comSubject: Please help me solving this error Traceback (most recent call last):  File "C:\users\rudra\desktop\python\client2.py", line 1, in     import urllib.request  File "C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py", line 84, in     import base64  File "C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\base64.py", line 9, in     import re  File "C:\users\rudra\desktop\python\re.py", line 23    print(re.findall('[aeiou]+',line))                                      ^ --   -- You received this message because you are subscribed to the Google Groups "Django users" group.To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHrGOLFQmheaL1frkawv4obMJF5%3DPfmsPxH2nmRrPPwdoCAHeA%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/8D557F9E-04E5-4E55-857D-A6E7B2008640%40hxcore.ol.


Please help me solving this error

2023-05-23 Thread Ramesh Bhatta
Traceback (most recent call last):
  File "C:\users\rudra\desktop\python\client2.py", line 1, in 
import urllib.request
  File
"C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py",
line 84, in 
import base64
  File
"C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\base64.py",
line 9, in 
import re
  File "C:\users\rudra\desktop\python\re.py", line 23
print(re.findall('[aeiou]+',line))
  ^

--

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


Re: I am struggling with calling consumer.py function from views to consumer in django here ismy code. Please help me. I am calling Asyncwebsocketconsumer

2023-04-02 Thread MOHAMED SABEEH VADAKKATH VALAPPIL

can you provide more details about the specific issues you are facing when 
trying to call this method? Are you getting any error messages, or is the 
function simply not being called? Any additional information you can 
provide will help me better understand your problem.

I am providing you with one of my codes for your preference. Please find 
the attached code in this email.If you have any questions or concerns, 
please do not hesitate to reach out to me.
import json
from channels.generic.websocket import AsyncWebsocketConsumer

class NotificationConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'notification_%s' % self.room_name

# Join room group
await self.channel_layer.group_add(
self.room_group_name,
self.channel_name
)

await self.accept()

async def disconnect(self, close_code):
# Leave room group
await self.channel_layer.group_discard(
self.room_group_name,
self.channel_name
)

async def send_notification(self, event):
message = json.loads(event['message'])

# Send message to WebSocket
await self.send(text_data=json.dumps(message))


views.py

# order notification inside function ... when receiving order 
message = "New order received ... .. ect...messages"
channel_layer = get_channel_layer()
async_to_sync(channel_layer.group_send)(
"notification_to_admin",
{
'type': 'send_notification',
'message': json.dumps(message)
}
)

"when using Django Channels, you need to use an ASGI server instead of a 
traditional WSGI 
server to serve your Django application.ASGI (Asynchronous Server Gateway 
Interface) is a standard interface for 
Python web servers to support asynchronous web applications. It allows for 
more efficient handling of long-lived 
connections, such as WebSockets, and enables Django to handle asynchronous 
requests and responses."
asgi.py
import os
import django
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import get_asgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'EcomShoppers.settings')
django.setup()

from channels.auth import AuthMiddleware, AuthMiddlewareStack
from notifications.routing import websocket_urlpatterns
application = ProtocolTypeRouter({
"http": get_asgi_application(),
"websocket": AuthMiddlewareStack(
URLRouter(
websocket_urlpatterns
)
)
})
On Sunday, April 2, 2023 at 7:57:09 PM UTC+5:30 Sneha Vishwakarma wrote:

> from channels.generic.websocket import AsyncWebsocketConsumer
> import json
>
> class MyConsumer(AsyncWebsocketConsumer):
> async def connect(self):
> self.room_group_name = 'kafka'
>
> # Join room group
> await self.channel_layer.group_add(
> self.room_group_name,
> self.channel_name
> )
>
> await self.accept()
>
> async def disconnect(self, close_code):
> # Leave room group
> await self.channel_layer.group_discard(
> self.room_group_name,
> self.channel_name
> )
> # Receive message from WebSocket
> async def receive(self, text_data):
> text_data_json = json.loads(text_data)
> message = text_data_json['message']
>
> # Send message to room group
> await self.channel_layer.group_send(
> self.room_group_name,
> {
> 'type': 'kafka_message',
> 'message': message
> }
> )
>
> # Receive message from room group
> async def kafka_message(self, event):
> message = event['message']
> print('HERE')
> # Send message to WebSocket
> await self.send(text_data=json.dumps({
> 'message': message
> }))
>
>
>
> views.py
>
> from channels.layers import get_channel_layer
> from asgiref.sync import async_to_sync, sync_to_async
> from django.contrib.auth.decorators import login_required
> from django.template import loader
> from .models import artifactInfo
> from django.shortcuts import render
> from django.http import HttpResponse,  HttpResponseNotFound, JsonResponse
> import os, mimetypes, json
> from .logic import send_message
> import logging
> logger = logging.getLogger(__name__)
>
> def testview(request):
> channel_layer = get_channel_layer()
>
> async_to_sync(channel_layer.group_send(
> 'kafka',
> {
> 'type': 'kafka.message',
> 'message': 'Test message'
> }

I am struggling with calling consumer.py function from views to consumer in django here ismy code. Please help me. I am calling Asyncwebsocketconsumer

2023-04-02 Thread 'Sneha Vishwakarma' via Django users
from channels.generic.websocket import AsyncWebsocketConsumer
import json

class MyConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_group_name = 'kafka'

# Join room group
await self.channel_layer.group_add(
self.room_group_name,
self.channel_name
)

await self.accept()

async def disconnect(self, close_code):
# Leave room group
await self.channel_layer.group_discard(
self.room_group_name,
self.channel_name
)
# Receive message from WebSocket
async def receive(self, text_data):
text_data_json = json.loads(text_data)
message = text_data_json['message']

# Send message to room group
await self.channel_layer.group_send(
self.room_group_name,
{
'type': 'kafka_message',
'message': message
}
)

# Receive message from room group
async def kafka_message(self, event):
message = event['message']
print('HERE')
# Send message to WebSocket
await self.send(text_data=json.dumps({
'message': message
}))



views.py

from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync, sync_to_async
from django.contrib.auth.decorators import login_required
from django.template import loader
from .models import artifactInfo
from django.shortcuts import render
from django.http import HttpResponse,  HttpResponseNotFound, JsonResponse
import os, mimetypes, json
from .logic import send_message
import logging
logger = logging.getLogger(__name__)

def testview(request):
channel_layer = get_channel_layer()

async_to_sync(channel_layer.group_send(
'kafka',
{
'type': 'kafka.message',
'message': 'Test message'
}
))
return HttpResponse('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/5cf7970c-1823-414e-bf23-f8805626194bn%40googlegroups.com.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-29 Thread Ammar Mohammed
Hello Dear
You should name your apps without the app word in the end
Example :
INSTALLED_APPS = [
"apps.store'',
" apps.core",
]
This will definitely work

Regards

On Wed, 19 Oct 2022, 7:30 AM regan opere,  wrote:

> Many, thanks for the reply. However, I have two apps in the directory
> called Apps..
> so when I name the apps in the settings using
> tiles.apps.TilesConfig' it still does'nt work
>
>   naming them like this:
>
>  'apps.core.apps',
>
> 'apps.store.apps',
> also still giver the error: django.core.exceptions.ImproperlyConfigured:
> Application labels aren't unique, duplicates: apps
>
> however, when I delete one of the apps from the settings, the server runs
> without an error
> On Wednesday, October 19, 2022 at 2:17:55 AM UTC+3 Codex wrote:
>
>> Lets take App Directory name tiles.
>> So inthe installed app list it will be
>>
>> 'tiles.apps.TilesConfig',
>> Or put simply
>> 'tiles',
>> Hope it helps .
>>
>>
>> On Tue, Oct 18, 2022, 06:16 regan opere  wrote:
>>
>>> Hello, I am new to django and I am still learning.
>>> I have created two apps core and store and I have registered them in the
>>> settings file of my root directory.
>>>  This is the error I get:
>>> django.core.exceptions.ImproperlyConfigured: Application labels aren't
>>> unique, duplicates: apps
>>>
>>> my settings look like this
>>> INSTALLED_APPS = [
>>> 'django.contrib.admin',
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.messages',
>>> 'django.contrib.staticfiles',
>>>
>>> 'apps.core.apps',
>>>
>>> 'apps.store.apps',
>>>
>>>
>>> and their individual apps.py look like this:
>>>
>>> class CoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'core'
>>>
>>>
>>> and
>>>
>>> class StoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'store'
>>>
>>>
>>>
>>> without the second app 'store" the server runs just fine
>>>
>>> --
>>>
>> You received this message because you are subscribed 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/fab8949f-1012-4fad-8259-b63c67195f69n%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/65db3780-57ec-41ec-afaf-abe16ae85e69n%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/CAHs1H7uxkrLFMvDs2t9w7hRJeyhNg21QxDKHj6-Dqhnv99cSNg%40mail.gmail.com.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-19 Thread johnpaul mulongo
You need to give the django apps you created unique names (try to see them
as separate entities), in your case this would be 'core' and 'store', then
you need to add them to the INSTALED_APPS list like so in the settings file:
[...,
'core.apps.CoreConfig',
'store.apps.StoreConfig',
]



On Wed, Oct 19, 2022 at 8:29 AM regan opere  wrote:

> Many, thanks for the reply. However, I have two apps in the directory
> called Apps..
> so when I name the apps in the settings using
> tiles.apps.TilesConfig' it still does'nt work
>
>   naming them like this:
>
>  'apps.core.apps',
>
> 'apps.store.apps',
> also still giver the error: django.core.exceptions.ImproperlyConfigured:
> Application labels aren't unique, duplicates: apps
>
> however, when I delete one of the apps from the settings, the server runs
> without an error
> On Wednesday, October 19, 2022 at 2:17:55 AM UTC+3 Codex wrote:
>
>> Lets take App Directory name tiles.
>> So inthe installed app list it will be
>>
>> 'tiles.apps.TilesConfig',
>> Or put simply
>> 'tiles',
>> Hope it helps .
>>
>>
>> On Tue, Oct 18, 2022, 06:16 regan opere  wrote:
>>
>>> Hello, I am new to django and I am still learning.
>>> I have created two apps core and store and I have registered them in the
>>> settings file of my root directory.
>>>  This is the error I get:
>>> django.core.exceptions.ImproperlyConfigured: Application labels aren't
>>> unique, duplicates: apps
>>>
>>> my settings look like this
>>> INSTALLED_APPS = [
>>> 'django.contrib.admin',
>>> 'django.contrib.auth',
>>> 'django.contrib.contenttypes',
>>> 'django.contrib.sessions',
>>> 'django.contrib.messages',
>>> 'django.contrib.staticfiles',
>>>
>>> 'apps.core.apps',
>>>
>>> 'apps.store.apps',
>>>
>>>
>>> and their individual apps.py look like this:
>>>
>>> class CoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'core'
>>>
>>>
>>> and
>>>
>>> class StoreConfig(AppConfig):
>>> default_auto_field = 'django.db.models.BigAutoField'
>>> name = 'store'
>>>
>>>
>>>
>>> without the second app 'store" the server runs just fine
>>>
>>> --
>>>
>> You received this message because you are subscribed 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/fab8949f-1012-4fad-8259-b63c67195f69n%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/65db3780-57ec-41ec-afaf-abe16ae85e69n%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/CAOj59W0fjZbkGpGvrSyFiCwAAJrt6%3D_6d1zb1G759J9igyu4aA%40mail.gmail.com.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-18 Thread regan opere
Many, thanks for the reply. However, I have two apps in the directory 
called Apps..
so when I name the apps in the settings using 
tiles.apps.TilesConfig' it still does'nt work

  naming them like this:

 'apps.core.apps',
   
'apps.store.apps',
also still giver the error: django.core.exceptions.ImproperlyConfigured: 
Application labels aren't unique, duplicates: apps

however, when I delete one of the apps from the settings, the server runs 
without an error
On Wednesday, October 19, 2022 at 2:17:55 AM UTC+3 Codex wrote:

> Lets take App Directory name tiles.
> So inthe installed app list it will be
>
> 'tiles.apps.TilesConfig',
> Or put simply
> 'tiles',
> Hope it helps .
>
>
> On Tue, Oct 18, 2022, 06:16 regan opere  wrote:
>
>> Hello, I am new to django and I am still learning.
>> I have created two apps core and store and I have registered them in the 
>> settings file of my root directory.
>>  This is the error I get:
>> django.core.exceptions.ImproperlyConfigured: Application labels aren't 
>> unique, duplicates: apps
>>
>> my settings look like this
>> INSTALLED_APPS = [
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>> 
>> 'apps.core.apps',
>> 
>> 'apps.store.apps',
>>
>>
>> and their individual apps.py look like this:
>>
>> class CoreConfig(AppConfig):
>> default_auto_field = 'django.db.models.BigAutoField'
>> name = 'core'
>>  
>>
>> and 
>>
>> class StoreConfig(AppConfig):
>> default_auto_field = 'django.db.models.BigAutoField'
>> name = 'store'
>>   
>>
>>
>> without the second app 'store" the server runs just fine
>>
>> -- 
>>
> You received this message because you are subscribed 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/fab8949f-1012-4fad-8259-b63c67195f69n%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/65db3780-57ec-41ec-afaf-abe16ae85e69n%40googlegroups.com.


Re: PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-18 Thread Chukwudi Onwusa
Lets take App Directory name tiles.
So inthe installed app list it will be

'tiles.apps.TilesConfig',
Or put simply
'tiles',
Hope it helps .


On Tue, Oct 18, 2022, 06:16 regan opere  wrote:

> Hello, I am new to django and I am still learning.
> I have created two apps core and store and I have registered them in the
> settings file of my root directory.
>  This is the error I get:
> django.core.exceptions.ImproperlyConfigured: Application labels aren't
> unique, duplicates: apps
>
> my settings look like this
> INSTALLED_APPS = [
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
>
> 'apps.core.apps',
>
> 'apps.store.apps',
>
>
> and their individual apps.py look like this:
>
> class CoreConfig(AppConfig):
> default_auto_field = 'django.db.models.BigAutoField'
> name = 'core'
>
>
> and
>
> class StoreConfig(AppConfig):
> default_auto_field = 'django.db.models.BigAutoField'
> name = 'store'
>
>
>
> without the second app 'store" the server runs just fine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fab8949f-1012-4fad-8259-b63c67195f69n%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/CAGoV8nnQ7giNodE94_Rma_asWGR2-%3DEVzjcH99zaAEx2_VCPnQ%40mail.gmail.com.


PLEASE HELP ME KNOW HOW TO ARRANGE INSTALLED APPS.

2022-10-17 Thread regan opere
Hello, I am new to django and I am still learning.
I have created two apps core and store and I have registered them in the 
settings file of my root directory.
 This is the error I get:
django.core.exceptions.ImproperlyConfigured: Application labels aren't 
unique, duplicates: apps

my settings look like this
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

'apps.core.apps',

'apps.store.apps',


and their individual apps.py look like this:

class CoreConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'core'
 

and 

class StoreConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'store'
  


without the second app 'store" the server runs just fine

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


Re: please help me to solve

2022-07-26 Thread Chelsea Fan
thanks bro

On Wed, Jul 27, 2022 at 7:36 AM Abdul Qoyyuum 
wrote:

> This is a Django group. I don't know how its implemented in Android but
> for your use case, you will need to learn Socket programming. Other than
> that, I can't help you. Sorry.
>
> On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan 
> wrote:
>
>> Hello, such a question, we plan to implement an application for Android,
>> for a TV and for a phone, it will be an application with the broadcast of
>> different channels, you will need to stream somehow, i.e. there is no
>> direct access.
>> which technologies I 'v to use for 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/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Abdul Qoyyuum Bin Haji Abdul Kadir
> HP No: +673 720 8043
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA3DN%3DWBB3tCjYZMDo5q7ce85-7u64uUB6eWhkjpb-0BfEVJVQ%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/CAJwZndfCO8wjWi22VXy%3DwpnUOTGmzEJRfubsY336Yh7MuBziiQ%40mail.gmail.com.


Re: please help me to solve

2022-07-26 Thread Abdul Qoyyuum
This is a Django group. I don't know how its implemented in Android but for
your use case, you will need to learn Socket programming. Other than that,
I can't help you. Sorry.

On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan 
wrote:

> Hello, such a question, we plan to implement an application for Android,
> for a TV and for a phone, it will be an application with the broadcast of
> different channels, you will need to stream somehow, i.e. there is no
> direct access.
> which technologies I 'v to use for 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/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com
> 
> .
>


-- 
Abdul Qoyyuum Bin Haji Abdul Kadir
HP No: +673 720 8043

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


please help me to solve

2022-07-26 Thread Chelsea Fan
Hello, such a question, we plan to implement an application for Android,
for a TV and for a phone, it will be an application with the broadcast of
different channels, you will need to stream somehow, i.e. there is no
direct access.
which technologies I 'v to use for 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/CAJwZnde2MU7REjt-GTJc%3DR7NsmND9wVen_EgnghdQQziZcxJMw%40mail.gmail.com.


hello everyone please can someone help me with my problem is very important please Environment: Request Method: GET Request URL: http://127.0.0.1:8000/user/ Django Version: 4.0.4 Python Version: 3

2022-04-30 Thread ray nkamwa
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/afc98569-1c64-4322-a533-d62a1a297115n%40googlegroups.com.
Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/user/

Django Version: 4.0.4
Python Version: 3.10.4
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'djangopressing',
 'bdpressing',
 'rest_framework',
 'django_filters',
 'rest_framework.authtoken',
 'dj_rest_auth']
Installed 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']



Traceback (most recent call last):
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\django\core\handlers\exception.py",
 line 55, in inner
response = get_response(request)
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\django\core\handlers\base.py",
 line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\django\views\decorators\csrf.py",
 line 54, in wrapped_view
return view_func(*args, **kwargs)
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\rest_framework\viewsets.py",
 line 125, in view
return self.dispatch(request, *args, **kwargs)
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\rest_framework\views.py",
 line 509, in dispatch
response = self.handle_exception(exc)
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\rest_framework\views.py",
 line 469, in handle_exception
self.raise_uncaught_exception(exc)
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\rest_framework\views.py",
 line 480, in raise_uncaught_exception
raise exc
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\rest_framework\views.py",
 line 497, in dispatch
self.initial(request, *args, **kwargs)
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\rest_framework\views.py",
 line 415, in initial
self.check_permissions(request)
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\rest_framework\views.py",
 line 331, in check_permissions
for permission in self.get_permissions():
  File 
"C:\Users\User\Desktop\djangopressing\env\lib\site-packages\rest_framework\views.py",
 line 278, in get_permissions
return [permission() for permission in self.permission_classes]

Exception Type: TypeError at /user/
Exception Value: 'BasePermissionMetaclass' object is not iterable

Re: How to resolve this error? can anyone please help me?

2022-01-13 Thread Luciano Martins
Hello, basically where you are calling this route you have to pass 
something like this: *{% url 'placeOrder' 1 %}* and it is being called 
without nd like this: *{% url 'placeOrder' %}*, but as posted above it 
would be better to put the code for the person to analyze

Em quinta-feira, 13 de janeiro de 2022 às 12:38:36 UTC-3, 
dashlaksh...@gmail.com escreveu:

> Please share me your code privately so that I can solve your proy as soon 
> as possible.
>
> On Thu, Jan 13, 2022, 20:16 sharath p  wrote:
>
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/
>>
>> Django Version: 4.0.1
>> Python Version: 3.10.1
>> Installed Applications:
>> ['django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles',
>>  'website']
>> Installed 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']
>>
>>
>> Template error:
>> In template 
>> C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\templates\website\navbar.html,
>>  
>> error at line 30
>>Reverse for 'placeOrder' with arguments '('',)' not found. 1 
>> pattern(s) tried: ['placeOrder/(?Pi[^/]+)/\\Z']
>>20 :   li class="nav-item active"
>>21 : a class="nav-link" href="{% url 'home' 
>> %}"Home/a
>>22 :   /li
>>23 :   {% if request.user.is_staff %}
>>24 :   /li
>>25 :   li class="nav-item active"
>>26 : a class="nav-link" href="{% url 'addProduct' 
>> %}"Add Product/a
>>27 :   /li
>>28 :   {% else %}
>>29 :   li class="nav-item"
>>30 : a class="nav-link" href=" {% url 'placeOrder' 
>> request.user.customer.id %} "Cart/a
>>31 :   /li
>>32 :   {% endif %}
>>33 :   li class="nav-item"
>>34 : a class="nav-link" href="{% url 'login' 
>> %}"Login/a
>>35 :   /li
>>36 : /ul
>>37 :   /div
>>38 : 
>>39 :   span class="greet"Hello, {{request.user}}/span
>>40 :   span a  class="greet" href="{% url 'logout' 
>> %}"Logout/a/span
>>
>>
>> Traceback (most recent call last):
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py",
>>  
>> line 47, in inner
>> response = get_response(request)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py",
>>  
>> line 181, in _get_response
>> response = wrapped_callback(request, *callback_args, 
>> **callback_kwargs)
>>   File 
>> "C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\views.py",
>>  
>> line 13, in home
>> return render(request,'website/home.html',context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\shortcuts.py",
>>  
>> line 19, in render
>> content = loader.render_to_string(template_name, context, request, 
>> using=using)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader.py",
>>  
>> line 62, in render_to_string
>> return template.render(context, request)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\backends\django.py",
>>  
>> line 61, in render
>> return self.template.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 176, in render
>> return self._render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 168, in _render
>> return self.nodelist.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 977, in render
>> return SafeString(''.join([
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 978, in listcomp
>> node.render_annotated(context) for node in self
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
>>  
>> line 938, in render_annotated
>> return self.render(context)
>>   File 
>> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
>>  
>> line 153, in render
>> return compiled_parent._render(context)
>>   File 
>> 

Re: How to resolve this error? can anyone please help me?

2022-01-13 Thread Lakshyaraj Dash X-D 25
Please share me your code privately so that I can solve your proy as soon
as possible.

On Thu, Jan 13, 2022, 20:16 sharath p  wrote:

>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/
>
> Django Version: 4.0.1
> Python Version: 3.10.1
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'website']
> Installed 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']
>
>
> Template error:
> In template
> C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\templates\website\navbar.html,
> error at line 30
>Reverse for 'placeOrder' with arguments '('',)' not found. 1 pattern(s)
> tried: ['placeOrder/(?Pi[^/]+)/\\Z']
>20 :   li class="nav-item active"
>21 : a class="nav-link" href="{% url 'home'
> %}"Home/a
>22 :   /li
>23 :   {% if request.user.is_staff %}
>24 :   /li
>25 :   li class="nav-item active"
>26 : a class="nav-link" href="{% url 'addProduct'
> %}"Add Product/a
>27 :   /li
>28 :   {% else %}
>29 :   li class="nav-item"
>30 : a class="nav-link" href=" {% url 'placeOrder'
> request.user.customer.id %} "Cart/a
>31 :   /li
>32 :   {% endif %}
>33 :   li class="nav-item"
>34 : a class="nav-link" href="{% url 'login'
> %}"Login/a
>35 :   /li
>36 : /ul
>37 :   /div
>38 :
>39 :   span class="greet"Hello, {{request.user}}/span
>40 :   span a  class="greet" href="{% url 'logout'
> %}"Logout/a/span
>
>
> Traceback (most recent call last):
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py",
> line 47, in inner
> response = get_response(request)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py",
> line 181, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\views.py",
> line 13, in home
> return render(request,'website/home.html',context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\shortcuts.py",
> line 19, in render
> content = loader.render_to_string(template_name, context, request,
> using=using)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader.py",
> line 62, in render_to_string
> return template.render(context, request)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\backends\django.py",
> line 61, in render
> return self.template.render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 176, in render
> return self._render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 168, in _render
> return self.nodelist.render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 977, in render
> return SafeString(''.join([
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 978, in listcomp
> node.render_annotated(context) for node in self
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 938, in render_annotated
> return self.render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
> line 153, in render
> return compiled_parent._render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 168, in _render
> return self.nodelist.render(context)
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 977, in render
> return SafeString(''.join([
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 978, in listcomp
> node.render_annotated(context) for node in self
>   File
> "C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
> line 938, in 

How to resolve this error? can anyone please help me?

2022-01-13 Thread sharath p

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/

Django Version: 4.0.1
Python Version: 3.10.1
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'website']
Installed 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']


Template error:
In template 
C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\templates\website\navbar.html,
 
error at line 30
   Reverse for 'placeOrder' with arguments '('',)' not found. 1 pattern(s) 
tried: ['placeOrder/(?Pi[^/]+)/\\Z']
   20 :   li class="nav-item active"
   21 : a class="nav-link" href="{% url 'home' 
%}"Home/a
   22 :   /li
   23 :   {% if request.user.is_staff %}
   24 :   /li
   25 :   li class="nav-item active"
   26 : a class="nav-link" href="{% url 'addProduct' %}"Add 
Product/a
   27 :   /li
   28 :   {% else %}
   29 :   li class="nav-item"
   30 : a class="nav-link" href=" {% url 'placeOrder' 
request.user.customer.id %} "Cart/a
   31 :   /li
   32 :   {% endif %}
   33 :   li class="nav-item"
   34 : a class="nav-link" href="{% url 'login' 
%}"Login/a
   35 :   /li
   36 : /ul
   37 :   /div
   38 : 
   39 :   span class="greet"Hello, {{request.user}}/span
   40 :   span a  class="greet" href="{% url 'logout' 
%}"Logout/a/span


Traceback (most recent call last):
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\exception.py",
 
line 47, in inner
response = get_response(request)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\handlers\base.py",
 
line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File 
"C:\Users\bhara\desktop\python\ecommerce-python-code\ecommerce-python-code\website\views.py",
 
line 13, in home
return render(request,'website/home.html',context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\shortcuts.py",
 
line 19, in render
content = loader.render_to_string(template_name, context, request, 
using=using)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader.py",
 
line 62, in render_to_string
return template.render(context, request)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\backends\django.py",
 
line 61, in render
return self.template.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 176, in render
return self._render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 168, in _render
return self.nodelist.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 977, in render
return SafeString(''.join([
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 978, in listcomp
node.render_annotated(context) for node in self
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 938, in render_annotated
return self.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
 
line 153, in render
return compiled_parent._render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 168, in _render
return self.nodelist.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 977, in render
return SafeString(''.join([
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 978, in listcomp
node.render_annotated(context) for node in self
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\base.py",
 
line 938, in render_annotated
return self.render(context)
  File 
"C:\Users\bhara\AppData\Local\Programs\Python\Python310\lib\site-packages\django\template\loader_tags.py",
 
line 201, in render
return template.render(context)
  File 

Re: HELP ME OUT

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

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

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7ffc995e-f0fa-4624-8138-1e22b7413e5an%40googlegroups.com
> 
> .
>

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


Re: HELP ME OUT

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

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

> Change the assets to static
>
> On Wed, 20 Oct, 2021, 2:45 pm Planet X,  wrote:
>
>> I can not connect to my static files here i am sending my screen shoot of
>> the setting and others links to the my base.html whats my fault please do
>> help
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/7ffc995e-f0fa-4624-8138-1e22b7413e5an%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF7qQgAnM1ckX7zaGfeVTfB9PJpUuZ99C1w%2B9Hbb%2B85ke7tb8A%40mail.gmail.com
> 
> .
>

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


Re: HELP ME OUT

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

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

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7ffc995e-f0fa-4624-8138-1e22b7413e5an%40googlegroups.com
> 
> .
>

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


Re: HELP ME OUT

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

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

> I can not connect to my static files here i am sending my screen shoot of
> the setting and others links to the my base.html whats my fault please do
> help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7ffc995e-f0fa-4624-8138-1e22b7413e5an%40googlegroups.com
> 
> .
>

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


HELP ME OUT

2021-10-20 Thread Planet X
I can not connect to my static files here i am sending my screen shoot of 
the setting and others links to the my base.html whats my fault please do 
help

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


Re: please help me todebug this code

2021-09-01 Thread Munzir Abba Daneji
Alright Peter sorry i get it. Fine

On Tue, Aug 31, 2021, 2:16 PM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:

> You seem to be confused about who asked the question because it was not me
> who asked the question.
> On 8/31/21 6:58 AM, Munzir Abba Daneji wrote:
>
> Hi peter The tag library you use is not correct use
> 
> {% load static %}
>
> again you html directory seems to be not organise try project_folder >
> Template_folder> index.html for example
>
> On Tue, Aug 31, 2021, 1:46 AM 'Peter van der Does' via Django users <
> django-users@googlegroups.com> wrote:
>
>> Uh what question are you answering?
>> On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
>>
>> Peter Check your Template DIR you supposed to organize you folders flow
>> under your "first_project" folder create the template folder and inser you
>> html
>>
>> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users <
>> django-users@googlegroups.com> wrote:
>>
>>> You got a " on line 2 that shouldn't be there
>>> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>>>
>>> In template C:\Users\DUSHYANT
>>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>>> error at line 2
>>>'"' is not a registered tag library. Must be one of:
>>>
>>>1 : !DOCTYPE html
>>>2 :  {% load static "%}
>>>
>>> --
>>>
>>> *Peter van der Does o: **410-584-2500*
>>> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.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/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.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/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
>> 
>> .
>>
>> --
>>
>> *Peter van der Does o: **410-584-2500*
>> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.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/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.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/CADL6%2BC%3DW20E1e-NZpRPjmULL%3DaD-Ty13xMk78jj%3Dupc-Wx%3D_pw%40mail.gmail.com
> 
> .
>
> --
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.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/7abe5b37-5819-608b-a746-979c31812592%40oneilinteractive.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/CADL6%2BCnntENZ82gwUSY%3DOfNFv6cijjRVDO83R9TnwoNmvaju%2BQ%40mail.gmail.com.


Re: please help me todebug this code

2021-08-31 Thread 'Peter van der Does' via Django users
You seem to be confused about who asked the question because it was not
me who asked the question.

On 8/31/21 6:58 AM, Munzir Abba Daneji wrote:
> Hi peter The tag library you use is not correct use 
> 
> {% load static %}
>
> again you html directory seems to be not organise try project_folder >
> Template_folder> index.html for example 
>
> On Tue, Aug 31, 2021, 1:46 AM 'Peter van der Does' via Django users
> mailto:django-users@googlegroups.com>>
> wrote:
>
> Uh what question are you answering?
>
> On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
>> Peter Check your Template DIR you supposed to organize you
>> folders flow under your "first_project" folder create the
>> template folder and inser you html 
>>
>> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django
>> users > > wrote:
>>
>> You got a " on line 2 that shouldn't be there
>>
>> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>>> In template C:\Users\DUSHYANT
>>> 
>>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>>> error at line 2
>>>    '"' is not a registered tag library. Must be one of:
>>>
>>>    1 : !DOCTYPE html
>>>    2 :  {% load static "%} 
>> -- 
>> *Peter van der Does
>> o: ***410-584-2500
>> m: 732-425-3102
>> *ONeil Interactive, Inc *
>> oneilinteractive.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/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.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/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
>> 
>> .
> -- 
> *Peter van der Does
> o: ***410-584-2500
> m: 732-425-3102
> *ONeil Interactive, Inc *
> oneilinteractive.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/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.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/CADL6%2BC%3DW20E1e-NZpRPjmULL%3DaD-Ty13xMk78jj%3Dupc-Wx%3D_pw%40mail.gmail.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/7abe5b37-5819-608b-a746-979c31812592%40oneilinteractive.com.


Re: please help me todebug this code

2021-08-31 Thread Munzir Abba Daneji
Hi peter The tag library you use is not correct use

{% load static %}

again you html directory seems to be not organise try project_folder >
Template_folder> index.html for example

On Tue, Aug 31, 2021, 1:46 AM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:

> Uh what question are you answering?
> On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
>
> Peter Check your Template DIR you supposed to organize you folders flow
> under your "first_project" folder create the template folder and inser you
> html
>
> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users <
> django-users@googlegroups.com> wrote:
>
>> You got a " on line 2 that shouldn't be there
>> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>>
>> In template C:\Users\DUSHYANT
>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>> error at line 2
>>'"' is not a registered tag library. Must be one of:
>>
>>1 : !DOCTYPE html
>>2 :  {% load static "%}
>>
>> --
>>
>> *Peter van der Does o: **410-584-2500*
>> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.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/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.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/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
> 
> .
>
> --
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.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/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.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/CADL6%2BC%3DW20E1e-NZpRPjmULL%3DaD-Ty13xMk78jj%3Dupc-Wx%3D_pw%40mail.gmail.com.


Re: please help me todebug this code

2021-08-30 Thread 'Peter van der Does' via Django users
Uh what question are you answering?

On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
> Peter Check your Template DIR you supposed to organize you folders
> flow under your "first_project" folder create the template folder and
> inser you html 
>
> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users
> mailto:django-users@googlegroups.com>>
> wrote:
>
> You got a " on line 2 that shouldn't be there
>
> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>> In template C:\Users\DUSHYANT
>> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
>> error at line 2
>>    '"' is not a registered tag library. Must be one of:
>>
>>    1 : !DOCTYPE html
>>    2 :  {% load static "%} 
> -- 
> *Peter van der Does
> o: ***410-584-2500
> m: 732-425-3102
> *ONeil Interactive, Inc *
> oneilinteractive.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/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.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/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com
> .
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/273a594d-dd67-0640-c717-ce90789692d3%40oneilinteractive.com.


Re: please help me todebug this code

2021-08-30 Thread Munzir Abba Daneji
Peter Check your Template DIR you supposed to organize you folders flow
under your "first_project" folder create the template folder and inser you
html

On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:

> You got a " on line 2 that shouldn't be there
> On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
>
> In template C:\Users\DUSHYANT
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
> error at line 2
>'"' is not a registered tag library. Must be one of:
>
>1 : !DOCTYPE html
>2 :  {% load static "%}
>
> --
>
> *Peter van der Does o: **410-584-2500*
> * m: 732-425-3102 ONeil Interactive, Inc  oneilinteractive.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/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.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/CADL6%2BCk9m%3DiYeNvaPHmNt%3D4qiVt66DO5UvDQMq2w8c8GN-4dYg%40mail.gmail.com.


Re: please help me todebug this code

2021-08-30 Thread 'Peter van der Does' via Django users
You got a " on line 2 that shouldn't be there

On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
> In template C:\Users\DUSHYANT
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
> error at line 2
>    '"' is not a registered tag library. Must be one of:
>
>    1 : !DOCTYPE html
>    2 :  {% load static "%} 
-- 
*Peter van der Does
o: ***410-584-2500
m: 732-425-3102
*ONeil Interactive, Inc *
oneilinteractive.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/4c7aa0fa-8e0e-01c1-e5f0-491a3c3d9c96%40oneilinteractive.com.


Re: please help me todebug this code

2021-08-30 Thread MR INDIA
send the template

On Sunday, 29 August 2021 at 08:12:37 UTC+5:30 du19sh...@gmail.com wrote:

>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/cor/learndj/
>
> Django Version: 3.0
> Python Version: 3.8.6
> Installed Applications:
> ['django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'course',
>  'fees']
> Installed 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']
>
>
> Template error:
> In template C:\Users\DUSHYANT 
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html, 
> error at line 2
>'"' is not a registered tag library. Must be one of:
> admin_list
> admin_modify
> admin_urls
> cache
> i18n
> l10n
> log
> static
> tz
>1 : !DOCTYPE html
>2 :  {% load static "%} 
>3 : html lang="en"
>4 :   head
>5 : meta charset="UTF-8" /
>6 : meta name="viewport" content="width=device-width, 
> initial-scale=1.0" /
>7 : link rel="stylesheet" href="{% static 'css/style.css' %}" 
> /
>8 : title{{title}}/title
>9 :   /head
>10 : 
>11 :   body
>12 : h2Start Learning {{cname}}/h2
>
>
> Traceback (most recent call last):
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\defaulttags.py",
>  
> line 1021, in find_library
> return parser.libraries[name]
>
> During handling of the above exception ('"'), another exception occurred:
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\exception.py",
>  
> line 34, in inner
> response = get_response(request)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\base.py",
>  
> line 115, in _get_response
> response = self.process_exception_by_middleware(e, request)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\base.py",
>  
> line 113, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File "C:\Users\DUSHYANT 
> THAKUR\PycharmProjects\django\gs15\course\views.py", line 5, in learn_django
> return render(request,'course/index.html')
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\shortcuts.py",
>  
> line 19, in render
> content = loader.render_to_string(template_name, context, request, 
> using=using)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py",
>  
> line 61, in render_to_string
> template = get_template(template_name, using=using)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py",
>  
> line 15, in get_template
> return engine.get_template(template_name)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\backends\django.py",
>  
> line 34, in get_template
> return Template(self.engine.get_template(template_name), self)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\engine.py",
>  
> line 143, in get_template
> template, origin = self.find_template(template_name)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\engine.py",
>  
> line 125, in find_template
> template = loader.get_template(name, skip=skip)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loaders\base.py",
>  
> line 29, in get_template
> return Template(
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 156, in __init__
> self.nodelist = self.compile_nodelist()
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 194, in compile_nodelist
> return parser.parse()
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 477, in parse
> raise self.error(token, e)
>   File "C:\Users\DUSHYANT 
> THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
>  
> line 475, in parse
> compiled_result = compile_func(self, token)

Re: Can you help me sharing link documentation to learn django ?

2021-08-29 Thread Stijn Verholen
I think he's asking for help in using Django as an ORM tool, not a web
framework.
If that's the case: do a Google search for 'standalone django' or use
sqlalchemy.

Best regards,
Stijn Verholen


On Sat, 28 Aug 2021, 22:49 Kasper Laudrup,  wrote:

> On 28/08/2021 01.55, Thuan Nguyen Thi Bích wrote:
> > Hi everyone
> > I'm not a developer. I'm a member of team Product.
> > I want to use django tool to select data.
> >
> > Please share with me link to learn the way using tool django   .
> >
>
> Django is not a tool, but a web development framework:
> https://en.wikipedia.org/wiki/Web_framework
>
> That means that it can be used for tons of different kinds of
> applications. This mailing list is for users creating applications using
> that framework.
>
> No one here would have any chance of helping you with using whatever was
> developed with Django just because it happened to be developed with Django.
>
> You would have a much better chance of getting help by contacting the
> people who developed the application you're trying to use. Have you
> tried doing that?
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/52fd5c38-edfe-3053-e2c0-885f6e475150%40stacktrace.dk
> .
>

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


Re: Can you help me sharing link documentation to learn django ?

2021-08-28 Thread Lakshyaraj Dash X-D 25
The official documentation is the best one :-
https://docs.djangoproject.com/en/3.2/
Any other help then please send it to dashlakshyaraj2...@gmail.com

On Sat, 28 Aug 2021, 06:36 Thuan Nguyen Thi Bích, 
wrote:

> Hi everyone
> I'm not a developer. I'm a member of team Product.
> I want to use django tool to select data.
>
> Please share with me link to learn the way using tool django   .
>
> *Example*: I select data from url of  django  tool. I need to learn more
> functions
> *https://djadmin.abc.vn/project/table-/?fieldname__in=8935274603843%2C8935274602211=2
> *
>
> [image: 22.png]
>
> Thank you so much.
> Sophia
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/91d9666d-f280-4c11-8b8e-c3c9887cbcb5n%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/CAF7qQgAuVRh8UnWM2re8zsM04d21uJP5rZb4Z8u0-Ge%3DEv%3DPRQ%40mail.gmail.com.


please help me todebug this code

2021-08-28 Thread DUSHYANT SINGH

Environment:


Request Method: GET
Request URL: http://127.0.0.1:8000/cor/learndj/

Django Version: 3.0
Python Version: 3.8.6
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'course',
 'fees']
Installed 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']


Template error:
In template C:\Users\DUSHYANT 
THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html, 
error at line 2
   '"' is not a registered tag library. Must be one of:
admin_list
admin_modify
admin_urls
cache
i18n
l10n
log
static
tz
   1 : !DOCTYPE html
   2 :  {% load static "%} 
   3 : html lang="en"
   4 :   head
   5 : meta charset="UTF-8" /
   6 : meta name="viewport" content="width=device-width, 
initial-scale=1.0" /
   7 : link rel="stylesheet" href="{% static 'css/style.css' %}" 
/
   8 : title{{title}}/title
   9 :   /head
   10 : 
   11 :   body
   12 : h2Start Learning {{cname}}/h2


Traceback (most recent call last):
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\defaulttags.py",
 
line 1021, in find_library
return parser.libraries[name]

During handling of the above exception ('"'), another exception occurred:
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\exception.py",
 
line 34, in inner
response = get_response(request)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\base.py",
 
line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\handlers\base.py",
 
line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "C:\Users\DUSHYANT 
THAKUR\PycharmProjects\django\gs15\course\views.py", line 5, in learn_django
return render(request,'course/index.html')
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\shortcuts.py",
 
line 19, in render
content = loader.render_to_string(template_name, context, request, 
using=using)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py",
 
line 61, in render_to_string
template = get_template(template_name, using=using)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loader.py",
 
line 15, in get_template
return engine.get_template(template_name)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\backends\django.py",
 
line 34, in get_template
return Template(self.engine.get_template(template_name), self)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\engine.py",
 
line 143, in get_template
template, origin = self.find_template(template_name)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\engine.py",
 
line 125, in find_template
template = loader.get_template(name, skip=skip)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\loaders\base.py",
 
line 29, in get_template
return Template(
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
 
line 156, in __init__
self.nodelist = self.compile_nodelist()
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
 
line 194, in compile_nodelist
return parser.parse()
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
 
line 477, in parse
raise self.error(token, e)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\base.py",
 
line 475, in parse
compiled_result = compile_func(self, token)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\defaulttags.py",
 
line 1078, in load
lib = find_library(parser, name)
  File "C:\Users\DUSHYANT 
THAKUR\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\template\defaulttags.py",
 
line 1023, in find_library
raise 

Re: Can you help me sharing link documentation to learn django ?

2021-08-28 Thread MR INDIA
Isn't the admin panel suffecient if you want to extract data from this 
website to any other app/website then tell the developers to make an 
api(recommended), or you can do web scraping (not recommended)

On Sunday, 29 August 2021 at 02:20:33 UTC+5:30 Kasper Laudrup wrote:

> On 28/08/2021 01.55, Thuan Nguyen Thi Bích wrote: 
> > Hi everyone 
> > I'm not a developer. I'm a member of team Product. 
> > I want to use django tool to select data. 
> > 
> > Please share with me link to learn the way using tool django   . 
> > 
>
> Django is not a tool, but a web development framework: 
> https://en.wikipedia.org/wiki/Web_framework 
>
> That means that it can be used for tons of different kinds of 
> applications. This mailing list is for users creating applications using 
> that framework. 
>
> No one here would have any chance of helping you with using whatever was 
> developed with Django just because it happened to be developed with 
> Django. 
>
> You would have a much better chance of getting help by contacting the 
> people who developed the application you're trying to use. Have you 
> tried doing that? 
>
> Kind regards, 
>
> Kasper Laudrup 
>
>

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


Re: Can you help me sharing link documentation to learn django ?

2021-08-28 Thread Kasper Laudrup
On 28/08/2021 01.55, Thuan Nguyen Thi Bích wrote:
> Hi everyone
> I'm not a developer. I'm a member of team Product.
> I want to use django tool to select data.
> 
> Please share with me link to learn the way using tool django   .
> 

Django is not a tool, but a web development framework:
https://en.wikipedia.org/wiki/Web_framework

That means that it can be used for tons of different kinds of
applications. This mailing list is for users creating applications using
that framework.

No one here would have any chance of helping you with using whatever was
developed with Django just because it happened to be developed with Django.

You would have a much better chance of getting help by contacting the
people who developed the application you're trying to use. Have you
tried doing that?

Kind regards,

Kasper Laudrup

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


OpenPGP_signature
Description: OpenPGP digital signature


Can you help me sharing link documentation to learn django ?

2021-08-27 Thread Thuan Nguyen Thi Bích
Hi everyone
I'm not a developer. I'm a member of team Product.
I want to use django tool to select data.

Please share with me link to learn the way using tool django   .

*Example*: I select data from url of  django  tool. I need to learn more 
functions
*https://djadmin.abc.vn/project/table-/?fieldname__in=8935274603843%2C8935274602211=2*

[image: 22.png]

Thank you so much.
Sophia

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


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

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

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

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

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


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

2021-08-18 Thread M. GW

Hey,

have you check this:

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

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

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


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

2021-08-18 Thread Alex B
Hello,

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

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

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

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

Alex B



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

> Hi
>
> I am now starting to work in Django.
>
> I built a development environment on my laptop. I experimented there,
> things work.
>
> I have a web server on the net. With multiple hosted domains.
>
>
>
> I would put my attempt on one. But things don't work.
>
> - python is installed, updated
>
> - I installed django
>
> - "python3 manage.py runserver" seems to work, but nothing comes out
>
>
>
> Questions:
>
> - how do I transfer the developed file there?
>
> - what do I need to do to run as a web server?
>
>
>
> Thanks for the help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/001e01d7940e%24095cd210%241c167630%24%40gmail.com
> 
> .
>

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


HELP me: "a beginner's questions"

2021-08-18 Thread jt.vcomplex
Hi

I am now starting to work in Django.

I built a development environment on my laptop. I experimented there, things
work.

I have a web server on the net. With multiple hosted domains.

 

I would put my attempt on one. But things don't work.

- python is installed, updated

- I installed django

- "python3 manage.py runserver" seems to work, but nothing comes out

 

Questions:

- how do I transfer the developed file there?

- what do I need to do to run as a web server?

 

Thanks for the help

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


Re: help me

2021-08-08 Thread MR INDIA
Some popular names are hostinger, aws, digital ocean etc... you need to buy 
a vps plan from any web hosting company. There is also another way to host 
that is by heroku or pythonanywhere  here you do not have do much work they 
configure everything for you but in VPS you have to configure everything, 
and it takes a little time. and before pushing your django app (assuming it 
is not just for hobby) have you taken all the neccesary security measures?

On Sunday, 8 August 2021 at 21:19:06 UTC+5:30 MR INDIA wrote:

> You can use any hosting provider who provides you the root access, so that 
> you can ssh into the server and host your django 
>
> On Thursday, 5 August 2021 at 11:44:24 UTC+5:30 satyajit...@gmail.com 
> wrote:
>
>> Good Morning Guys, I'm from India. I'm an open source engineer. Having 2 
>> years of professional experience in software development.
>> I can help you with deploying your local application to the server. 
>>
>> On Wed, Aug 4, 2021 at 6:41 PM Badr Gamal  wrote:
>>
>>> Good morning guys,
>>>
>>> I am new web developer and start to code with python django  framwork
>>>
>>> I only made a web site at my local machine .
>>>
>>> What i do after that to make this website published on web ?
>>>
>>> On Wednesday, July 28, 2021 at 3:43:51 PM UTC+2 skyli...@gmail.com 
>>> wrote:
>>>
 You can. Use name cheap, cpanel

 On Wednesday, July 28, 2021, David Crandell  
 wrote:

> Try deploying to a PaaS platform like Heroku or DigitalOceans Apps 
> service.
>
> They can be very cost effective and are an excellent way to host a 
> Django app.
>
> On Tuesday, July 27, 2021 at 11:26:13 AM UTC-5 kossit...@gmail.com 
> wrote:
>
>>
>> I need a video who explains how to host a site on ionos 
>> -- 
>> theodoros17@python-developer
>>
> -- 
> You received this message because you are subscribed 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/80f577f9-5731-4b4b-82db-51da1e695ff1n%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...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/d7a0d0d1-03ca-4189-a5f7-af74ccd638d0n%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/f02c75f5-f84f-4a5d-93e3-1732b3626004n%40googlegroups.com.


Re: Please help me to add button functionality in django admin panel for filter list of objects

2021-08-08 Thread MR INDIA
This article can help 
: 
https://hakibenita.medium.com/how-to-add-custom-action-buttons-to-django-admin-8d266f5b0d41
 

On Thursday, 5 August 2021 at 18:31:52 UTC+5:30 arvind@gmail.com wrote:

> hey guys i want to add the action on click the list will be filter of 
> objects
>
> here the on click of view client task i want to filter task which author 
> type is client
> Here its my try.
>
> *inherit html*
> {% extends 'admin/change_list.html' %}
>
> {% block object-tools %}
> 
> 
> {% csrf_token %}
> View Client Task
> 
>
> 
> 
>
>
>
> *admin.py*
>
>
> *task admin*
> from django.conf.urls import patterns, url
> from django.core.urlresolvers import reverse
> class TaskAdmin(SimpleHistoryAdmin, ExportActionModelAdmin):
> change_list_template = "admin/client_task_change_list.html"
> fieldsets = (
> (
> None,
> {'fields': ('title', 'amount','word','status', 'manager', 'executive', 
> 'assignee','owner','timezone','moved_to_freelancer_portal', 
> 'can_send_without_payment', 
> 'start_date','deadline_soft','deadline_hard','client','team_lead','quality_manager','referencing_style',
>  
> 'tags')}
> ),
> (
> _('Content'),
> {'fields': ('description','author')}
> ),
> (
> _('Tracking'),
> {'fields': ('accepted_by_manager', 'accepted_by_manager_at', 
> 'completed_by_employee', 'completed_by_employee_at',\
>
> 'verified_by_manager','verified_by_manager_at','verified_by_quality','verified_by_quality_at',\
> 'sent_to_client','sent_to_client_at','completed_on')}
> ),
> )
>
> inlines = (PaymentInline,RatingInline,) 
> list_display = ('title', 'status', 'client', 'manager', 'assignee', 
> 'executive', 'team_lead', 
> 'quality_manager','get_payment_status','author','created_at','deadline_soft','deadline_hard','word')
> list_filter = ('status', 'author__type', 
> 'client__clientprofile__email_to_use', OverdueTaskListFilter,('manager', 
> admin.RelatedOnlyFieldListFilter), ('team_lead', 
> admin.RelatedOnlyFieldListFilter), ('quality_manager', 
> admin.RelatedOnlyFieldListFilter),PaymentStatusCategoryListFilter,('deadline_soft',
>  
> DateRangeFilter),('deadline_hard', DateRangeFilter), ('start_date', 
> DateRangeFilter), ('completed_on', DateRangeFilter), AuthorFilter, 
> ('owner', admin.RelatedOnlyFieldListFilter), 'moved_to_freelancer_portal')
> search_fields = ('key', 'title', 'client__username', 'client__email', 
> 'manager__email',)
> date_hierarchy = ('deadline_hard')
> resource_class = TaskResource
>
> # def get_urls(self):
>
> # urls = super(TaskAdmin,self).get_urls()
> # extra_url = patterns('',
> # # url(r'^Client/$',self.get_client_task, 
> name='get_client_task'),#self.admin_site.admin_view(self.do_evil_view))
> # url(r'^client/$',self.admin_site.admin_view(self.get_client_task)),
> # )
> # return urls + extra_url
> # def get_client_task(self, request):
> # # if 'get_client' in request.POST:
> # Task.objects.filter(author__type = UserAccount.LEVEL0)
> # # if self.model.objects.filter(author__type = 
> UserAccount.LEVEL0).exists():
> # self.message_user(request, "Here Its all Clients Tasks")
> # # else:
> # # self.message_user(request, "NO Clients Tasks")
>
> # return reverse('../')
>
> formats = (
> base_formats.CSV,
> base_formats.XLS,
> )
> raw_id_fields = ('author','assignee', 
> 'team_lead','executive','quality_manager', 'manager', 'client', 'owner', 
> 'executive', 'specification')
> history_list_display = ["history_change_reason", "word", 
> "deadline_hard","moved_to_freelancer_portal", "status"]
> #filter_horizontal = ('equipment',)
>
> # def render_change_form(self, request, context, *args, **kwargs):
> # """We need to update the context to show the button."""
> # context.update({'show_client_task': True})
> # return super().render_change_form(request, context, *args, **kwargs)
>
>
> def get_payment_status(self, obj):
> return obj.payment.get_status()
> get_payment_status.short_description = 'Payment'
> def get_queryset(self, request):
> queryset = super(TaskAdmin, self).get_queryset(
> request).annotate(feedback_count=Count('feedback'))
> # if 'get_client' in request.POST:
> # queryset.filter(author__type = UserAccount.LEVEL0)
> # return queryset
> # return queryset
> {{ block.super }}
> {% endblock %}
>

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


Re: help me

2021-08-08 Thread MR INDIA
You can use any hosting provider who provides you the root access, so that 
you can ssh into the server and host your django 

On Thursday, 5 August 2021 at 11:44:24 UTC+5:30 satyajit...@gmail.com wrote:

> Good Morning Guys, I'm from India. I'm an open source engineer. Having 2 
> years of professional experience in software development.
> I can help you with deploying your local application to the server. 
>
> On Wed, Aug 4, 2021 at 6:41 PM Badr Gamal  wrote:
>
>> Good morning guys,
>>
>> I am new web developer and start to code with python django  framwork
>>
>> I only made a web site at my local machine .
>>
>> What i do after that to make this website published on web ?
>>
>> On Wednesday, July 28, 2021 at 3:43:51 PM UTC+2 skyli...@gmail.com wrote:
>>
>>> You can. Use name cheap, cpanel
>>>
>>> On Wednesday, July 28, 2021, David Crandell  
>>> wrote:
>>>
 Try deploying to a PaaS platform like Heroku or DigitalOceans Apps 
 service.

 They can be very cost effective and are an excellent way to host a 
 Django app.

 On Tuesday, July 27, 2021 at 11:26:13 AM UTC-5 kossit...@gmail.com 
 wrote:

>
> I need a video who explains how to host a site on ionos 
> -- 
> theodoros17@python-developer
>
 -- 
 You received this message because you are subscribed 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/80f577f9-5731-4b4b-82db-51da1e695ff1n%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/d7a0d0d1-03ca-4189-a5f7-af74ccd638d0n%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/c0255a82-9866-4f85-8aa4-0c6e249b5a7cn%40googlegroups.com.


Re: help me

2021-08-05 Thread Satyajit Barik
Good Morning Guys, I'm from India. I'm an open source engineer. Having 2
years of professional experience in software development.
I can help you with deploying your local application to the server.

On Wed, Aug 4, 2021 at 6:41 PM Badr Gamal  wrote:

> Good morning guys,
>
> I am new web developer and start to code with python django  framwork
>
> I only made a web site at my local machine .
>
> What i do after that to make this website published on web ?
>
> On Wednesday, July 28, 2021 at 3:43:51 PM UTC+2 skyli...@gmail.com wrote:
>
>> You can. Use name cheap, cpanel
>>
>> On Wednesday, July 28, 2021, David Crandell  wrote:
>>
>>> Try deploying to a PaaS platform like Heroku or DigitalOceans Apps
>>> service.
>>>
>>> They can be very cost effective and are an excellent way to host a
>>> Django app.
>>>
>>> On Tuesday, July 27, 2021 at 11:26:13 AM UTC-5 kossit...@gmail.com
>>> wrote:
>>>

 I need a video who explains how to host a site on ionos
 --
 theodoros17@python-developer

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/80f577f9-5731-4b4b-82db-51da1e695ff1n%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/d7a0d0d1-03ca-4189-a5f7-af74ccd638d0n%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/CANd-%2BoDmT%2BE_JgVGepVrE4SZ61i7TE2n486e3c%3DTmFrRhZf_aw%40mail.gmail.com.


Re: help me

2021-08-04 Thread Badr Gamal
Good morning guys,

I am new web developer and start to code with python django  framwork

I only made a web site at my local machine .

What i do after that to make this website published on web ?

On Wednesday, July 28, 2021 at 3:43:51 PM UTC+2 skyli...@gmail.com wrote:

> You can. Use name cheap, cpanel
>
> On Wednesday, July 28, 2021, David Crandell  wrote:
>
>> Try deploying to a PaaS platform like Heroku or DigitalOceans Apps 
>> service.
>>
>> They can be very cost effective and are an excellent way to host a Django 
>> app.
>>
>> On Tuesday, July 27, 2021 at 11:26:13 AM UTC-5 kossit...@gmail.com wrote:
>>
>>>
>>> I need a video who explains how to host a site on ionos 
>>> -- 
>>> theodoros17@python-developer
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/80f577f9-5731-4b4b-82db-51da1e695ff1n%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/d7a0d0d1-03ca-4189-a5f7-af74ccd638d0n%40googlegroups.com.


Re: Can anyone help me

2021-07-28 Thread DJANGO DEVELOPER
Hi nagaraju, if you're new to django then you should go for a CRUD
functionality to understand django. you can also build a blog post web app
then you will be able to build this form by yourself. well if you don't
want to build other ideas and want to work on this form then you should
search for formsets and then you can develop the form

On Wed, Jul 28, 2021 at 10:42 PM Sebastian Jung 
wrote:

> Hello,
>
> I have start with django girls tutorial. This is a relative easy start
> with a simple app. But i think after this you are able to develop your app.
> https://tutorial.djangogirls.org/en/
>
> Regards
>
> Nagaraju Singothu  schrieb am Mi., 28. Juli
> 2021, 15:51:
>
>> Dear friends,
>>
>> I'm new to django, plz help me how to develop this page and send me the
>> source code.
>>
>> This task only using bootstrap and Django
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%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/CAKGT9my3R3n5rF%2B%2Baj9DqfCN%3DkL7jmPCJd%3D612qcea5ZmNk_3g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKGT9my3R3n5rF%2B%2Baj9DqfCN%3DkL7jmPCJd%3D612qcea5ZmNk_3g%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/CAKPY9pkz3ShbhGJGh8Umc%2B%3DBE3y_1-tNruMBcF1y%3Dt0fMJarYQ%40mail.gmail.com.


Re: Can anyone help me

2021-07-28 Thread Sebastian Jung
Hello,

I have start with django girls tutorial. This is a relative easy start with
a simple app. But i think after this you are able to develop your app.
https://tutorial.djangogirls.org/en/

Regards

Nagaraju Singothu  schrieb am Mi., 28. Juli
2021, 15:51:

> Dear friends,
>
> I'm new to django, plz help me how to develop this page and send me the
> source code.
>
> This task only using bootstrap and Django
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%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/CAKGT9my3R3n5rF%2B%2Baj9DqfCN%3DkL7jmPCJd%3D612qcea5ZmNk_3g%40mail.gmail.com.


Re: Can anyone help me

2021-07-28 Thread Sharif Mehedi
Here's the django-official tutorial: 
https://docs.djangoproject.com/en/3.2/intro/tutorial01/   On Wednesday, July 
28, 2021, 8:58:25 PM GMT+6, Nagaraju Singothu  
wrote:  
 
 Sir, please send me one tutorial.

On Wed, Jul 28, 2021 at 8:04 PM Sebastian Jung  
wrote:

Hello Nagaruj,
Here in this forum you get help on specific problem but when you search a 
people how help you develop such a page then you find on upwork developer fast 
and cheap.
If you want to make it self then several tutorials exists.
Regards
Nagaraju Singothu  schrieb am Mi., 28. Juli 2021, 
15:51:

Dear friends,
I'm new to django, plz help me how to develop this page and send me the source 
code. 
This task only using bootstrap and Django 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%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/CAKGT9mynS-1huwqSq0ch%3DhpKc%3DguZ_of_FFxmB4G-EW3V8kiWA%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/CAMyGuAYB__ninjWjwSMdLwas00ds0PUpcHdrHoK84bckwb03Mg%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/128551395.674636.1627484412834%40mail.yahoo.com.


Re: Can anyone help me

2021-07-28 Thread Nagaraju Singothu
Sir, please send me one tutorial.


On Wed, Jul 28, 2021 at 8:04 PM Sebastian Jung 
wrote:

> Hello Nagaruj,
>
> Here in this forum you get help on specific problem but when you search a
> people how help you develop such a page then you find on upwork developer
> fast and cheap.
>
> If you want to make it self then several tutorials exists.
>
> Regards
>
> Nagaraju Singothu  schrieb am Mi., 28. Juli
> 2021, 15:51:
>
>> Dear friends,
>>
>> I'm new to django, plz help me how to develop this page and send me the
>> source code.
>>
>> This task only using bootstrap and Django
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%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/CAKGT9mynS-1huwqSq0ch%3DhpKc%3DguZ_of_FFxmB4G-EW3V8kiWA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKGT9mynS-1huwqSq0ch%3DhpKc%3DguZ_of_FFxmB4G-EW3V8kiWA%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/CAMyGuAYB__ninjWjwSMdLwas00ds0PUpcHdrHoK84bckwb03Mg%40mail.gmail.com.


Re: Can anyone help me

2021-07-28 Thread Sebastian Jung
Hello Nagaruj,

Here in this forum you get help on specific problem but when you search a
people how help you develop such a page then you find on upwork developer
fast and cheap.

If you want to make it self then several tutorials exists.

Regards

Nagaraju Singothu  schrieb am Mi., 28. Juli
2021, 15:51:

> Dear friends,
>
> I'm new to django, plz help me how to develop this page and send me the
> source code.
>
> This task only using bootstrap and Django
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMyGuAayru0Zg-imwncZasP36Ur5%3DQFLbi%2BWV8RARrN5qPfKTA%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/CAKGT9mynS-1huwqSq0ch%3DhpKc%3DguZ_of_FFxmB4G-EW3V8kiWA%40mail.gmail.com.


Can anyone help me

2021-07-28 Thread Nagaraju Singothu
Dear friends,

I'm new to django, plz help me how to develop this page and send me the
source code.

This task only using bootstrap and Django

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


Re: help me

2021-07-28 Thread SKYLINE TV
You can. Use name cheap, cpanel

On Wednesday, July 28, 2021, David Crandell 
wrote:

> Try deploying to a PaaS platform like Heroku or DigitalOceans Apps service.
>
> They can be very cost effective and are an excellent way to host a Django
> app.
>
> On Tuesday, July 27, 2021 at 11:26:13 AM UTC-5 kossit...@gmail.com wrote:
>
>>
>> I need a video who explains how to host a site on ionos
>> --
>> theodoros17@python-developer
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/80f577f9-5731-4b4b-82db-51da1e695ff1n%
> 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/CABoT6ifGRu6f8U%2B4rxbqdXUTDctT1u4qj_JggRSzpQy_q%2BCY6g%40mail.gmail.com.


Re: help me

2021-07-28 Thread David Crandell
Try deploying to a PaaS platform like Heroku or DigitalOceans Apps service.

They can be very cost effective and are an excellent way to host a Django 
app.

On Tuesday, July 27, 2021 at 11:26:13 AM UTC-5 kossit...@gmail.com wrote:

>
> I need a video who explains how to host a site on ionos 
> -- 
> theodoros17@python-developer
>

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


Re: help me

2021-07-27 Thread Théodore KOSSI
Propose me a hosting that support python

Le mar. 27 juil. 2021 à 17:24, Théodore KOSSI  a
écrit :

>
> I need a video who explains how to host a site on ionos
> --
> theodoros17@python-developer
>


-- 
theodoros17@python-developer

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


help me

2021-07-27 Thread Théodore KOSSI
I need a video who explains how to host a site on ionos
-- 
theodoros17@python-developer

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


Re: Help me for user connection message error

2021-07-16 Thread Théodore KOSSI
thanks you very much for your attention. I have already fund it


Le ven. 16 juil. 2021 à 04:04, Gabriel Araya Garcia <
gabrielaraya2...@gmail.com> a écrit :

> How? with a message. It's very simple.
> It's is in authentication page that you had build.
>
>
> Gabriel Araya Garcia
> GMI - Desarrollo de Sistemas Informáticos
>
>
>
>
> El jue, 15 jul 2021 a las 14:04, Kasper Laudrup ()
> escribió:
>
>> On 15/07/2021 19.14, Théodore KOSSI wrote:
>> >
>> > I want to know how to transmit an error message when user try to
>> connect
>>
>> That's very simple. Just make sure there's nothing the user can connect
>> to, then the user will get an error message. You don't even have to
>> transmit anything.
>>
>> If that's not what you mean, try to describe what you're trying to
>> achieve a bit more in detail.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/04798171-8bd3-004d-f4c0-d0ccb0d70c84%40stacktrace.dk
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKVvSDB%3DDR9hjro4MHoFvVwj0sSHTeTM%3DSVPdGvfqxgXjS-7xg%40mail.gmail.com
> 
> .
>


-- 
theodoros17@python-developer

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


Re: Help me for user connection message error

2021-07-15 Thread Gabriel Araya Garcia
How? with a message. It's very simple.
It's is in authentication page that you had build.


Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El jue, 15 jul 2021 a las 14:04, Kasper Laudrup ()
escribió:

> On 15/07/2021 19.14, Théodore KOSSI wrote:
> >
> > I want to know how to transmit an error message when user try to connect
>
> That's very simple. Just make sure there's nothing the user can connect
> to, then the user will get an error message. You don't even have to
> transmit anything.
>
> If that's not what you mean, try to describe what you're trying to
> achieve a bit more in detail.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/04798171-8bd3-004d-f4c0-d0ccb0d70c84%40stacktrace.dk
> .
>

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


Re: Help me for user connection message error

2021-07-15 Thread Kasper Laudrup
On 15/07/2021 19.14, Théodore KOSSI wrote:
> 
> I want to know how to transmit an error message when user try to connect 

That's very simple. Just make sure there's nothing the user can connect
to, then the user will get an error message. You don't even have to
transmit anything.

If that's not what you mean, try to describe what you're trying to
achieve a bit more in detail.

Kind regards,

Kasper Laudrup

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


OpenPGP_signature
Description: OpenPGP digital signature


Help me for user connection message error

2021-07-15 Thread Théodore KOSSI
I want to know how to transmit an error message when user try to connect
theodoros17@python-developer

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


Re: Kindly help me with Django filer, urgent need.

2021-06-25 Thread Aritra Ray
Right, kindly heed to the problem as early as possible, The GitHub link is
provided below.
https://github.com/First-project-01/Django-ecommerce/issues/12

On Fri, 25 Jun 2021 at 19:34, Symaxx  wrote:

> This is easier to work with on GitHub, do you have a GitHub account?
>
> You can raise an issue then share the link here 
>
> On Fri, 25 Jun 2021, 3:04 PM Aritra Ray,  wrote:
>
>> Hi,
>> This is my second request regarding the same issue. I've been building a
>> Django E-commerce website and I'm facing problems filtering the product
>> according to price. I used django-filter to filter category and size.
>> Please suggest a solution for price in the following manner: Latest
>> products, Lowest to Highest and Highest to Lowest. I've made some progress
>> in the template without using django-filter. Kindly help me tie it up with
>> the backend.
>>
>> Do let me know if anything else is needed.
>> Thanks for your help in advance
>>
>> Regards,
>> Aritra
>>
>> #products-html
>>  
>> 
>>   
>>   
>> {{filter.form|crispy}}
>> 
>>   Select sorting criteria
>>   
>>   
>>   
>>   > '-date_added' %}selected{% endif %}>Latest collection
>>   >  %} selected {% endif %}>Lowest to Highest
>>   >  %} selected {% endif %}>Highest to Lowest
>>   
>>   
>>   
>>   
>> > class="glyphicon glyphicon-search"> Search
>> 
>>   
>> 
>>
>> #views.py
>>
>> class Product(ListView):
>> model = Items
>> paginate_by = 6
>> template_name = 'products.html'
>> ordering = ["-id"]
>>
>> def get_queryset(self):
>> queryset = super().get_queryset()
>> filter = ProductFilter(self.request.GET, queryset)
>> return filter.qs
>>
>> def get_context_data(self, **kwargs):
>> context = super().get_context_data(**kwargs)
>> queryset = self.get_queryset()
>> filter = ProductFilter(self.request.GET, queryset)
>> context["filter"] = filter
>> return context
>>
>> # filters.py
>> import django_filters
>> from .models import Items
>>
>> class ProductFilter(django_filters.FilterSet):
>> class Meta:
>> model = Items
>> fields = ['size', 'category']
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAFecadt5eYOdDX3sL46kbscLfbhwAzEcvwUpM9TF_s%2B9YhBGVQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAFecadt5eYOdDX3sL46kbscLfbhwAzEcvwUpM9TF_s%2B9YhBGVQ%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/CANPYDAtyWhqy%3DGM%3DEGpwVrUFDrTuctmgpN4xPcrLyKYgOv23cg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANPYDAtyWhqy%3DGM%3DEGpwVrUFDrTuctmgpN4xPcrLyKYgOv23cg%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/CAFecaduYnX1yYU-f1B2rOKZjX4_XnU-%2BVDGVPZan4DikY_e19A%40mail.gmail.com.


Re: Kindly help me with Django filer, urgent need.

2021-06-25 Thread Symaxx
This is easier to work with on GitHub, do you have a GitHub account?

You can raise an issue then share the link here 

On Fri, 25 Jun 2021, 3:04 PM Aritra Ray,  wrote:

> Hi,
> This is my second request regarding the same issue. I've been building a
> Django E-commerce website and I'm facing problems filtering the product
> according to price. I used django-filter to filter category and size.
> Please suggest a solution for price in the following manner: Latest
> products, Lowest to Highest and Highest to Lowest. I've made some progress
> in the template without using django-filter. Kindly help me tie it up with
> the backend.
>
> Do let me know if anything else is needed.
> Thanks for your help in advance
>
> Regards,
> Aritra
>
> #products-html
>  
> 
>   
>   
> {{filter.form|crispy}}
> 
>   Select sorting criteria
>   
>   
>   
>'-date_added' %}selected{% endif %}>Latest collection
> selected {% endif %}>Lowest to Highest
> %} selected {% endif %}>Highest to Lowest
>   
>   
>   
>   
>  class="glyphicon glyphicon-search"> Search
> 
>   
> 
>
> #views.py
>
> class Product(ListView):
> model = Items
> paginate_by = 6
> template_name = 'products.html'
> ordering = ["-id"]
>
> def get_queryset(self):
> queryset = super().get_queryset()
> filter = ProductFilter(self.request.GET, queryset)
> return filter.qs
>
> def get_context_data(self, **kwargs):
> context = super().get_context_data(**kwargs)
> queryset = self.get_queryset()
> filter = ProductFilter(self.request.GET, queryset)
> context["filter"] = filter
> return context
>
> # filters.py
> import django_filters
> from .models import Items
>
> class ProductFilter(django_filters.FilterSet):
> class Meta:
> model = Items
> fields = ['size', 'category']
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFecadt5eYOdDX3sL46kbscLfbhwAzEcvwUpM9TF_s%2B9YhBGVQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFecadt5eYOdDX3sL46kbscLfbhwAzEcvwUpM9TF_s%2B9YhBGVQ%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/CANPYDAtyWhqy%3DGM%3DEGpwVrUFDrTuctmgpN4xPcrLyKYgOv23cg%40mail.gmail.com.


Kindly help me with Django filer, urgent need.

2021-06-25 Thread Aritra Ray
Hi,
This is my second request regarding the same issue. I've been building a
Django E-commerce website and I'm facing problems filtering the product
according to price. I used django-filter to filter category and size.
Please suggest a solution for price in the following manner: Latest
products, Lowest to Highest and Highest to Lowest. I've made some progress
in the template without using django-filter. Kindly help me tie it up with
the backend.

Do let me know if anything else is needed.
Thanks for your help in advance

Regards,
Aritra

#products-html
 

  
  
{{filter.form|crispy}}

  Select sorting criteria
  
  
  
  Latest collection
  Lowest to Highest
  Highest to Lowest
  
  
  
  
 Search

  


#views.py

class Product(ListView):
model = Items
paginate_by = 6
template_name = 'products.html'
ordering = ["-id"]

def get_queryset(self):
queryset = super().get_queryset()
filter = ProductFilter(self.request.GET, queryset)
return filter.qs

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
queryset = self.get_queryset()
filter = ProductFilter(self.request.GET, queryset)
context["filter"] = filter
return context

# filters.py
import django_filters
from .models import Items

class ProductFilter(django_filters.FilterSet):
class Meta:
model = Items
fields = ['size', 'category']

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


Re: Help me Please - Django and python program

2021-06-22 Thread mayank sandikar
 {
>>>>>>>>>>>   border: none;
>>>>>>>>>>>   color: black;
>>>>>>>>>>>   padding: 15px 32px;
>>>>>>>>>>>   text-align: center;
>>>>>>>>>>>   text-decoration: none;
>>>>>>>>>>>   display: inline-block;
>>>>>>>>>>>   font-size: 16px;
>>>>>>>>>>>   margin: 4px 2px;
>>>>>>>>>>>   cursor: pointer;
>>>>>>>>>>>
>>>>>>>>>>> }
>>>>>>>>>>>
>>>>>>>>>>> .button2 {background-color: #008CBA;}
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>>  
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>   
>>>>>>>>>>> ID
>>>>>>>>>>> Itemname
>>>>>>>>>>> Quantity
>>>>>>>>>>>
>>>>>>>>>>>  rate
>>>>>>>>>>>   amount
>>>>>>>>>>>   
>>>>>>>>>>>
>>>>>>>>>>>   {% for displayemp in editupdaterecord%}
>>>>>>>>>>>   
>>>>>>>>>>>   {{displayemp.id}}
>>>>>>>>>>>   {{displayemp.Itemname}}
>>>>>>>>>>>   {{displayemp.quantity}} 
>>>>>>>>>>>{{displayemp.rate}} 
>>>>>>>>>>>   {{displayemp.basicamount}} 
>>>>>>>>>>>
>>>>>>>>>>>   
>>>>>>>>>>>{% endfor %}
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>   
>>>>>>>>>>>  {% csrf_token %}
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>>   
>>>>>>>>>>> ID
>>>>>>>>>>> Itemname
>>>>>>>>>>> Quantity
>>>>>>>>>>>
>>>>>>>>>>> userquantity
>>>>>>>>>>> amount
>>>>>>>>>>>   
>>>>>>>>>>>
>>>>>>>>>>>   {% for displayemp in editupdaterecord%}
>>>>>>>>>>>   
>>>>>>>>>>>   {{displayemp.id}}
>>>>>>>>>>>   {{displayemp.Itemname}}
>>>>>>>>>>>   {{displayemp.quantity}} 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>   
>>>>>>>>>>>
>>>>>>>>>>>{% csrf_token %}
>>>>>>>>>>>   >>>>>>>>>>  value="{{editupdaterecord.userquantity}}"   >
>>>>>>>>>>>{{displayemp.amount2}} 
>>>>>>>>>>>   
>>>>>>>>>>>{% endfor %}
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>> Add
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>&g

Re: Help me Please - Django and python program

2021-06-22 Thread DJANGO DEVELOPER
 4px 2px;
>>>>>>>>>>   cursor: pointer;
>>>>>>>>>>
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>>> .button2 {background-color: #008CBA;}
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>>  
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>   
>>>>>>>>>> ID
>>>>>>>>>> Itemname
>>>>>>>>>> Quantity
>>>>>>>>>>
>>>>>>>>>>  rate
>>>>>>>>>>   amount
>>>>>>>>>>   
>>>>>>>>>>
>>>>>>>>>>   {% for displayemp in editupdaterecord%}
>>>>>>>>>>   
>>>>>>>>>>   {{displayemp.id}}
>>>>>>>>>>   {{displayemp.Itemname}}
>>>>>>>>>>   {{displayemp.quantity}} 
>>>>>>>>>>{{displayemp.rate}} 
>>>>>>>>>>   {{displayemp.basicamount}} 
>>>>>>>>>>
>>>>>>>>>>   
>>>>>>>>>>{% endfor %}
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>   
>>>>>>>>>>  {% csrf_token %}
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>>   
>>>>>>>>>> ID
>>>>>>>>>> Itemname
>>>>>>>>>> Quantity
>>>>>>>>>>
>>>>>>>>>> userquantity
>>>>>>>>>> amount
>>>>>>>>>>   
>>>>>>>>>>
>>>>>>>>>>   {% for displayemp in editupdaterecord%}
>>>>>>>>>>   
>>>>>>>>>>   {{displayemp.id}}
>>>>>>>>>>   {{displayemp.Itemname}}
>>>>>>>>>>   {{displayemp.quantity}} 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>   
>>>>>>>>>>
>>>>>>>>>>{% csrf_token %}
>>>>>>>>>>   >>>>>>>>> value="{{editupdaterecord.userquantity}}"   >
>>>>>>>>>>{{displayemp.amount2}} 
>>>>>>>>>>   
>>>>>>>>>>{% endfor %}
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>> Add
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Jun 22, 2021 at 3:49 PM mayank sandikar <
>>>>>>>>>> mayanksandikar191...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello sir,
>>>>>>>>>>> I'm trying to insert the data in the table. For example in
>>>>>>>>>>> database
>>>>>>>>>>> Itemname quantity price user-quantity amount
>>>>>>>>>>> pen20  5   0   

Re: Help me Please - Django and python program

2021-06-22 Thread DJANGO DEVELOPER
;>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>  
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>   
>>>>>>>>> ID
>>>>>>>>> Itemname
>>>>>>>>> Quantity
>>>>>>>>>
>>>>>>>>>  rate
>>>>>>>>>   amount
>>>>>>>>>   
>>>>>>>>>
>>>>>>>>>   {% for displayemp in editupdaterecord%}
>>>>>>>>>   
>>>>>>>>>   {{displayemp.id}}
>>>>>>>>>   {{displayemp.Itemname}}
>>>>>>>>>   {{displayemp.quantity}} 
>>>>>>>>>{{displayemp.rate}} 
>>>>>>>>>   {{displayemp.basicamount}} 
>>>>>>>>>
>>>>>>>>>   
>>>>>>>>>{% endfor %}
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>   
>>>>>>>>>  {% csrf_token %}
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>   
>>>>>>>>> ID
>>>>>>>>> Itemname
>>>>>>>>> Quantity
>>>>>>>>>
>>>>>>>>> userquantity
>>>>>>>>> amount
>>>>>>>>>   
>>>>>>>>>
>>>>>>>>>   {% for displayemp in editupdaterecord%}
>>>>>>>>>   
>>>>>>>>>   {{displayemp.id}}
>>>>>>>>>   {{displayemp.Itemname}}
>>>>>>>>>   {{displayemp.quantity}} 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>   
>>>>>>>>>
>>>>>>>>>{% csrf_token %}
>>>>>>>>>   >>>>>>>> value="{{editupdaterecord.userquantity}}"   >
>>>>>>>>>    {{displayemp.amount2}} 
>>>>>>>>>   
>>>>>>>>>{% endfor %}
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> Add
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Jun 22, 2021 at 3:49 PM mayank sandikar <
>>>>>>>>> mayanksandikar191...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hello sir,
>>>>>>>>>> I'm trying to insert the data in the table. For example in
>>>>>>>>>> database
>>>>>>>>>> Itemname quantity price user-quantity amount
>>>>>>>>>> pen20  5   00
>>>>>>>>>> book  20 10  00
>>>>>>>>>>
>>>>>>>>>> in my database I'm getting this result
>>>>>>>>>> pen20  5   00
>>>>>>>>>> book  20 10  00
>>>>>>>>>>  20
>>>>>>>>>>
>>>>>>>>>> I want to take the itemname, quantity, and price in the last row
>>>>>>>>>> as well.
>>>>>>>>>> In my html front view (screenshot 50) only the last text box is
>>>>>>>>>> ac

Re: Help me Please - Django and python program

2021-06-22 Thread mayank sandikar
amount
>>>>>>>>   
>>>>>>>>
>>>>>>>>   {% for displayemp in editupdaterecord%}
>>>>>>>>   
>>>>>>>>   {{displayemp.id}}
>>>>>>>>   {{displayemp.Itemname}}
>>>>>>>>   {{displayemp.quantity}} 
>>>>>>>>{{displayemp.rate}} 
>>>>>>>>   {{displayemp.basicamount}} 
>>>>>>>>
>>>>>>>>   
>>>>>>>>{% endfor %}
>>>>>>>>
>>>>>>>>
>>>>>>>>   
>>>>>>>>  {% csrf_token %}
>>>>>>>>
>>>>>>>> 
>>>>>>>>   
>>>>>>>> ID
>>>>>>>> Itemname
>>>>>>>> Quantity
>>>>>>>>
>>>>>>>> userquantity
>>>>>>>> amount
>>>>>>>>   
>>>>>>>>
>>>>>>>>   {% for displayemp in editupdaterecord%}
>>>>>>>>   
>>>>>>>>   {{displayemp.id}}
>>>>>>>>   {{displayemp.Itemname}}
>>>>>>>>   {{displayemp.quantity}} 
>>>>>>>>
>>>>>>>>
>>>>>>>>   
>>>>>>>>
>>>>>>>>{% csrf_token %}
>>>>>>>>   >>>>>>> value="{{editupdaterecord.userquantity}}"   >
>>>>>>>>{{displayemp.amount2}} 
>>>>>>>>   
>>>>>>>>{% endfor %}
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 
>>>>>>>>
>>>>>>>> Add
>>>>>>>>
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Jun 22, 2021 at 3:49 PM mayank sandikar <
>>>>>>>> mayanksandikar191...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hello sir,
>>>>>>>>> I'm trying to insert the data in the table. For example in
>>>>>>>>> database
>>>>>>>>> Itemname quantity price user-quantity amount
>>>>>>>>> pen20  5   00
>>>>>>>>> book  20 10  00
>>>>>>>>>
>>>>>>>>> in my database I'm getting this result
>>>>>>>>> pen20  5   00
>>>>>>>>> book  20 10  00
>>>>>>>>>  20
>>>>>>>>>
>>>>>>>>> I want to take the itemname, quantity, and price in the last row
>>>>>>>>> as well.
>>>>>>>>> In my html front view (screenshot 50) only the last text box is
>>>>>>>>> active in the user quantity column.
>>>>>>>>>
>>>>>>>>> please help me.
>>>>>>>>> thank you
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Jun 22, 2021 at 2:58 PM DJANGO DEVELOPER <
>>>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> according to your code, you're trying to update the product
>>>>>>>>>> record. right?
>>>>>>>>>> If so, then you're doing things the right way.
>>>>>>>>>>
>>>>>>>>>> On Tue, Jun 22, 2021 at 9:50 AM mayank sandikar <
>>>>>>>>>

Re: Help me - Django and python

2021-06-22 Thread DJANGO DEVELOPER
have you removed for loop from your form?

On Tue, Jun 22, 2021 at 8:33 PM DJANGO DEVELOPER 
wrote:

> because it is necessary to write when there are no more conditions left.
>
> On Tue, Jun 22, 2021 at 6:31 PM avdesh sharma 
> wrote:
>
>> what will happen if I change from elif to else ?
>> FYI - I checked it but still getting same error.
>>
>> On Tue, Jun 22, 2021 at 2:51 PM DJANGO DEVELOPER 
>> wrote:
>>
>>> your index.html
>>>
>>> 
>>> PASSWORD
>>> >> class="form-control" name="password" placeholder="Enter Password">
>>> 
>>> 
>>> {% if login == 'inactive' %}
>>> User Inactive! Contact 
>>> Admin!
>>> {% elif login == 'invalid' %}
>>> line 32 username or password 
>>> Invalid
>>> {% endif%}
>>> {% if tab_error == True %}
>>> Invalid Tab Selected
>>> {% endif %}
>>>
>>>
>>>
>>> changed index.html
>>>
>>> 
>>> PASSWORD
>>> >> class="form-control" name="password" placeholder="Enter Password" 
>>> value="{{login.password_field}}">
>>> 
>>> 
>>> {% if login == 'inactive' %}
>>> User Inactive! Contact 
>>> Admin!
>>> {% else %}
>>> line 32 username or password 
>>> Invalid
>>> {% endif%}
>>> {% if tab_error == True %}
>>> Invalid Tab Selected
>>> {% endif %}
>>>
>>>
>>> On Tue, Jun 22, 2021 at 2:16 PM DJANGO DEVELOPER <
>>> abubakarbr...@gmail.com> wrote:
>>>
 by seeing your code, it seems that only the 'else' part is working.
 have you provided value='{{dict_key.model_password_field}} in your html
 input element?

 On Tue, Jun 22, 2021 at 12:52 PM avdesh sharma <
 avdeshsharma...@gmail.com> wrote:

> Here is my View.py code
>
> from django.shortcuts import render
> from django.http import HttpResponseRedirect
> from django.urls import reverse
> from django.contrib.auth import authenticate, logout, login
> from django.contrib.auth.decorators import login_required
> from student.models import *
> from django.views.generic import TemplateView
> import datetime, random
> from django.contrib.auth.backends import BaseBackend
> # Create your views here.
>
>
> def index_view(request):
> if request.method == 'POST':
> username = request.POST.get('username')
> password = request.POST.get('password')
> tab_selected = request.POST.get('tab_selected')
>
> user = authenticate(username=username, password=password)
> print(user)
> if user:
> # if get_user(username):
> if user.is_active:
> login(request, user)
> request.session['username'] = username
> request.session['tab_selected'] = tab_selected
> if tab_selected == 'student_tab':
> return 
> HttpResponseRedirect(reverse('student:stud_home'))
> elif tab_selected == 'dept_tab':
> if username[:3] == 'hod':
> return 
> HttpResponseRedirect(reverse('student:hod_home'))
> else:
> return 
> HttpResponseRedirect(reverse('student:dep_home'))
> elif tab_selected == 'office_tab':
> return 
> HttpResponseRedirect(reverse('student:off_home'))
> else:
> user_login = 'inactive'
> return render(request, 'student/index.html', 
> context={'login': user_login})
> else:
> user_login = 'invalid'
> return render(request, 'student/index.html', 
> context={'login': user_login})
> else:
> return render(request, 'student/index.html', context={})
>
>
> index.html
>
> 
>  style="color:black;">PASSWORD
>  class="form-control" name="password" placeholder="Enter Password">
> 
> 
> {% if login == 'inactive' %}
> User Inactive! Contact 
> Admin!
> {% elif login == 'invalid' %}
> line 32 username or password 
> Invalid
> {% endif%}
> {% if tab_error == True %}
> Invalid Tab Selected
> {% endif %}
> 
>
>
> On Tue, Jun 22, 2021 at 11:55 AM DJANGO DEVELOPER <
> abubakarbr...@gmail.com> wrote:
>
>> can you please share your login view code?
>>
>> On Tue, Jun 22, 2021 at 10:12 AM avdesh sharma <
>> avdeshsharma...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I have an issue coming in my django code, even though the user id
>>> and password is present in sqlite3 db still  the user is giving '
>>> *None'* value
>>> user = authenticate(username=username, password=password)
>>>
>>> and I am not able to login with user and throwing this error.
>>>
>>> [image: image.png]
>>>
>>>
>>>
>>>
>>> --
>>> Warm Regards,
>>> Avdesh Kumar Sharma
>>> 9650031844
>>>

Re: Help me - Django and python

2021-06-22 Thread DJANGO DEVELOPER
because it is necessary to write when there are no more conditions left.

On Tue, Jun 22, 2021 at 6:31 PM avdesh sharma 
wrote:

> what will happen if I change from elif to else ?
> FYI - I checked it but still getting same error.
>
> On Tue, Jun 22, 2021 at 2:51 PM DJANGO DEVELOPER 
> wrote:
>
>> your index.html
>>
>> 
>> PASSWORD
>> > class="form-control" name="password" placeholder="Enter Password">
>> 
>> 
>> {% if login == 'inactive' %}
>> User Inactive! Contact 
>> Admin!
>> {% elif login == 'invalid' %}
>> line 32 username or password 
>> Invalid
>> {% endif%}
>> {% if tab_error == True %}
>> Invalid Tab Selected
>> {% endif %}
>>
>>
>>
>> changed index.html
>>
>> 
>> PASSWORD
>> > class="form-control" name="password" placeholder="Enter Password" 
>> value="{{login.password_field}}">
>> 
>> 
>> {% if login == 'inactive' %}
>> User Inactive! Contact 
>> Admin!
>> {% else %}
>> line 32 username or password 
>> Invalid
>> {% endif%}
>> {% if tab_error == True %}
>> Invalid Tab Selected
>> {% endif %}
>>
>>
>> On Tue, Jun 22, 2021 at 2:16 PM DJANGO DEVELOPER 
>> wrote:
>>
>>> by seeing your code, it seems that only the 'else' part is working. have
>>> you provided value='{{dict_key.model_password_field}} in your html input
>>> element?
>>>
>>> On Tue, Jun 22, 2021 at 12:52 PM avdesh sharma <
>>> avdeshsharma...@gmail.com> wrote:
>>>
 Here is my View.py code

 from django.shortcuts import render
 from django.http import HttpResponseRedirect
 from django.urls import reverse
 from django.contrib.auth import authenticate, logout, login
 from django.contrib.auth.decorators import login_required
 from student.models import *
 from django.views.generic import TemplateView
 import datetime, random
 from django.contrib.auth.backends import BaseBackend
 # Create your views here.


 def index_view(request):
 if request.method == 'POST':
 username = request.POST.get('username')
 password = request.POST.get('password')
 tab_selected = request.POST.get('tab_selected')

 user = authenticate(username=username, password=password)
 print(user)
 if user:
 # if get_user(username):
 if user.is_active:
 login(request, user)
 request.session['username'] = username
 request.session['tab_selected'] = tab_selected
 if tab_selected == 'student_tab':
 return 
 HttpResponseRedirect(reverse('student:stud_home'))
 elif tab_selected == 'dept_tab':
 if username[:3] == 'hod':
 return 
 HttpResponseRedirect(reverse('student:hod_home'))
 else:
 return 
 HttpResponseRedirect(reverse('student:dep_home'))
 elif tab_selected == 'office_tab':
 return 
 HttpResponseRedirect(reverse('student:off_home'))
 else:
 user_login = 'inactive'
 return render(request, 'student/index.html', 
 context={'login': user_login})
 else:
 user_login = 'invalid'
 return render(request, 'student/index.html', context={'login': 
 user_login})
 else:
 return render(request, 'student/index.html', context={})


 index.html

 
 PASSWORD
 >>> class="form-control" name="password" placeholder="Enter Password">
 
 
 {% if login == 'inactive' %}
 User Inactive! Contact 
 Admin!
 {% elif login == 'invalid' %}
 line 32 username or password 
 Invalid
 {% endif%}
 {% if tab_error == True %}
 Invalid Tab Selected
 {% endif %}
 


 On Tue, Jun 22, 2021 at 11:55 AM DJANGO DEVELOPER <
 abubakarbr...@gmail.com> wrote:

> can you please share your login view code?
>
> On Tue, Jun 22, 2021 at 10:12 AM avdesh sharma <
> avdeshsharma...@gmail.com> wrote:
>
>> Hi All,
>>
>> I have an issue coming in my django code, even though the user id and
>> password is present in sqlite3 db still  the user is giving '*None'*
>> value
>> user = authenticate(username=username, password=password)
>>
>> and I am not able to login with user and throwing this error.
>>
>> [image: image.png]
>>
>>
>>
>>
>> --
>> Warm Regards,
>> Avdesh Kumar Sharma
>> 9650031844
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Django users" group.
>> To unsubscribe from this 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 me - Django and python

2021-06-22 Thread avdesh sharma
what will happen if I change from elif to else ?
FYI - I checked it but still getting same error.

On Tue, Jun 22, 2021 at 2:51 PM DJANGO DEVELOPER 
wrote:

> your index.html
>
> 
> PASSWORD
>  class="form-control" name="password" placeholder="Enter Password">
> 
> 
> {% if login == 'inactive' %}
> User Inactive! Contact 
> Admin!
> {% elif login == 'invalid' %}
> line 32 username or password 
> Invalid
> {% endif%}
> {% if tab_error == True %}
> Invalid Tab Selected
> {% endif %}
>
>
>
> changed index.html
>
> 
> PASSWORD
>  class="form-control" name="password" placeholder="Enter Password" 
> value="{{login.password_field}}">
> 
> 
> {% if login == 'inactive' %}
> User Inactive! Contact 
> Admin!
> {% else %}
> line 32 username or password 
> Invalid
> {% endif%}
> {% if tab_error == True %}
> Invalid Tab Selected
> {% endif %}
>
>
> On Tue, Jun 22, 2021 at 2:16 PM DJANGO DEVELOPER 
> wrote:
>
>> by seeing your code, it seems that only the 'else' part is working. have
>> you provided value='{{dict_key.model_password_field}} in your html input
>> element?
>>
>> On Tue, Jun 22, 2021 at 12:52 PM avdesh sharma 
>> wrote:
>>
>>> Here is my View.py code
>>>
>>> from django.shortcuts import render
>>> from django.http import HttpResponseRedirect
>>> from django.urls import reverse
>>> from django.contrib.auth import authenticate, logout, login
>>> from django.contrib.auth.decorators import login_required
>>> from student.models import *
>>> from django.views.generic import TemplateView
>>> import datetime, random
>>> from django.contrib.auth.backends import BaseBackend
>>> # Create your views here.
>>>
>>>
>>> def index_view(request):
>>> if request.method == 'POST':
>>> username = request.POST.get('username')
>>> password = request.POST.get('password')
>>> tab_selected = request.POST.get('tab_selected')
>>>
>>> user = authenticate(username=username, password=password)
>>> print(user)
>>> if user:
>>> # if get_user(username):
>>> if user.is_active:
>>> login(request, user)
>>> request.session['username'] = username
>>> request.session['tab_selected'] = tab_selected
>>> if tab_selected == 'student_tab':
>>> return 
>>> HttpResponseRedirect(reverse('student:stud_home'))
>>> elif tab_selected == 'dept_tab':
>>> if username[:3] == 'hod':
>>> return 
>>> HttpResponseRedirect(reverse('student:hod_home'))
>>> else:
>>> return 
>>> HttpResponseRedirect(reverse('student:dep_home'))
>>> elif tab_selected == 'office_tab':
>>> return HttpResponseRedirect(reverse('student:off_home'))
>>> else:
>>> user_login = 'inactive'
>>> return render(request, 'student/index.html', 
>>> context={'login': user_login})
>>> else:
>>> user_login = 'invalid'
>>> return render(request, 'student/index.html', context={'login': 
>>> user_login})
>>> else:
>>> return render(request, 'student/index.html', context={})
>>>
>>>
>>> index.html
>>>
>>> 
>>> PASSWORD
>>> >> class="form-control" name="password" placeholder="Enter Password">
>>> 
>>> 
>>> {% if login == 'inactive' %}
>>> User Inactive! Contact 
>>> Admin!
>>> {% elif login == 'invalid' %}
>>> line 32 username or password 
>>> Invalid
>>> {% endif%}
>>> {% if tab_error == True %}
>>> Invalid Tab Selected
>>> {% endif %}
>>> 
>>>
>>>
>>> On Tue, Jun 22, 2021 at 11:55 AM DJANGO DEVELOPER <
>>> abubakarbr...@gmail.com> wrote:
>>>
 can you please share your login view code?

 On Tue, Jun 22, 2021 at 10:12 AM avdesh sharma <
 avdeshsharma...@gmail.com> wrote:

> Hi All,
>
> I have an issue coming in my django code, even though the user id and
> password is present in sqlite3 db still  the user is giving '*None'*
> value
> user = authenticate(username=username, password=password)
>
> and I am not able to login with user and throwing this error.
>
> [image: image.png]
>
>
>
>
> --
> Warm Regards,
> Avdesh Kumar Sharma
> 9650031844
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAF5Nfo65s-8c75FRkhF0rN7Sh0aUH6eKNBbQ--OMawNPCVX13w%40mail.gmail.com
> 
> .
>
 --
 You received this message because you 

  1   2   3   4   5   6   7   8   9   >