Andrej
The CI/CD pipeline helped me even to create a test environment with a couple lines of code.
I test my code in the test environment and after testing it, I release the application to the production environment.
If someone has any questions, I would be glad to share information about that.
barto
Hello! A question
Is it possible to deploy 100 simple websites, made with django, on a 2gb ec2 server from aws? 😁
barto
Excuse my newbie question
Roman
Yeah
Roman
100^2
barto
Roman
No
Roman
It’s not even about 100 websites
Roman
You will have problems with configuration
Roman
It’s 1% because no request are coming
barto
oh sure but it's% 1
Roman
does electro car takes electricity when turn on but not moving ?
Roman
1%
Mr.m
https://github.com/BhavaniShanker999/Djaango
Mr.m
Guys have a look over page sample website images are also present...
Roman
To the rest will be like domain.com:3000
Roman
Well you can do some proxy Nginx tricks with redirects
Roman
I don’t think so and I don’t see any point in it
barto
There has to be a way
Roman
But i am not sure they will work
barto
barto
Dev
Chandan
Which one is best cheap hosting provider for django application ??
---
Getting error in Pagination
---
Views.py
def index(request):
obj_list = Post.objects.all()
ctags = Post.tags.most_common()
paginator = Paginator(obj_list,3)
try:
page = int(request.GET.get('page','1'))
except:
page = 1
try:
obj = paginator.get_page(page)
except(EmptyPage, InvalidPage):
posts = paginator.page(paginator.num_pages)
context = {
'obj': obj,
'ctags':ctags,
}
return render (request, 'blog/index.html', context)
---
template
<div class="pagination">
<ul>
{% if obj.has_previous %}
<li><a href="?page{{ obj.previous_page_number }}">Previous</a></li>
{% endif %}
{% for pg in obj.paginator.page_range %}
{% if obj.number == pg %}
<li class="active"><a href="?page={{ pg }}">{{ pg }}></a></li>
{% else %}
<li><a href="?page{{ pg }}">{{ pg }}></a></li>
{% endif %}
{% endfor %}
{% if obj.has_next %}
<li><a href="?page{{ obj.next_page_number }}">Next</a></li>
{% endif %}
</ul>
</div>
Виктор
---
Виктор
??
Can't view yr code in telegram
---
Ok
---
https://dpaste.org/cGcW
Виктор
Dpaste.de is services to sharing code,
Виктор
---
Add error pls
Pagination is not working Previous and Next page or page numbers jus displaying first 2 posts only on clicking next its not showing next posts
Виктор
Виктор
---
Виктор
Aneesh
Graphene_django shows module error
Виктор
Виктор
lets show ur error log in dpaste.de
Aneesh
Ol
Aneesh
Ok
---
---
Anonymous
Hi . i want creatr scheme markup to django project
Виктор
Dexter
Can anyone share Django 3 cook book pdf
Anonymous
Anonymous
How to get OAuth2 token in postman
cj
Shiven
How to login using Facebook or google credentials In Django?
Ganesh
Hey i am completely new to Django can i know if I make a web app using django can I take user entered data to show real time graph using panda nd matplotlib on website..
వ్లాదమిర్ పుతిన్
Виктор
Taku
How can I design dynamic search in Django
?like Google search
Anonymous
Виктор
Anonymous
Taku
No I don't know
Anonymous
First of all, search google and try to get what can be done with ajax
Taku
Ok bro
Taku
Iam doing a project in that I am designing search of profile names,items etc
Taku
I have done search based on filters
Taku
But its not enough
Anonymous
Using ajax you can asynchronously search and do whatever you can in front end using json response, you should know javascript dom manipulation well too
Taku
Angel
I want to create web application in django so from which source i can learn easily??
Виктор
Angel
Okk thnk u
Presence
Hi All