The Inspired
The Inspired
its in your google account settings.
Holla
any recomandations of theme sites to download of front end project so that i can practise withn django
Sayidbek
Holla
its kinda backend thing
Charly
DaFallen
Is it possible to make a rest API of an existing Django webapp?
DaFallen
Koen de
Blessings 😁
And a quickstart too; https://www.django-rest-framework.org/tutorial/quickstart/
Santana
Hello, any Youtube video that explains how to upload a Django web application?
Virendra
Hey I am working on a Django app like ola and Uber, can someone suggest me how to start, because I am facing lot of problem
Charly
Vikas
@login_required
@type_ops_required
def ops_dashboard(request):
context = {}
current_user = request.user
today = timezone.now().date()
month_first_date = datetime(today.year, today.month, 1)
task_subscriber_qs = TaskSubscriber.objects.filter(subscriber=current_user,
date_of_completion__range=[month_first_date, today]).select_related('subscriber', 'task')
context['word_achieved'] = task_subscriber_qs.aggregate(Sum('no_of_word'))
feedback_list = []
user_type = request.user.type
if user_type == UserAccount.LEVEL6:
context['information_message'] = InformationMessage.objects.filter(is_visible=True, manager=True)
if user_type == UserAccount.LEVEL2:
context['information_message'] = InformationMessage.objects.filter(is_visible=True, expert=True)
if user_type == UserAccount.LEVEL4:
context['information_message'] = InformationMessage.objects.filter(is_visible=True, team_lead=True)
if user_type == UserAccount.LEVEL5:
context['information_message'] = InformationMessage.objects.filter(is_visible=True, associate=True)
if user_type == UserAccount.LEVEL8:
context['information_message'] = InformationMessage.objects.filter(is_visible=True, quality_manager=True)
for i in task_subscriber_qs:
feedback_list.append(i.task.feedback.count())
context['total_feedbacks'] = sum(feedback_list)
context['completed_task'] = task_subscriber_qs.filter(date_of_completion__isnull=False).count()
return render(request, 'dashboard/dashboard.html',context)
Vikas
Where i am wrong in this code
Vikas
Can any one help
Vikas
Count is not shown
Vikas
TypeError at
Module object is not callable
Vikas
This is the error
Vikas
Today = time zone.now().date()
Vikas
Is it correct in django 1.11
Charly
Vikas
This is the error
Vikas
This is the code
Charly
Thats not a full error
cj
/warn !p
Vikas
What??
Aashish
What is the mean of false in this request.data.get('password ', false)
Charly
Aashish
Maxim
What??
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Mikhail
Hello, not sure how to right to use dry-rest-permissions. Looks like it based on entities methods where I need to implement permission logic. But how that permissions could be correlate with standard Django permissions and collected in groups? Or it's totally different from it?
Skilz
Hello everyone!!
Please in my models I have fields where I set 'null=true' and 'blank=true' so users can go ahead without filling those fields... But when I rendered it out on the html I get 'none' in these fields... Please how do I remove none and make it empty.
Thanks!!
Phansivang
when I try to run python manage.py runserver but when I click on the link my browser says this site can’t provide a secure connection why??
Phansivang
Django : Error "You're accessing the development server over HTTPS, but it only supports HTTP"
Tin
Hey guys I am working on Django loan application and so far I can't seem to find good resources for it , about the interest rates, penalty for late payment, minimum amount one can be given when taking a loan and such details.... If you know a good resource please help
Andrew
Godfred
Hello
Godfred
Please any mentor here for me? Am a beginner
zhumagulov
In django is there any rules for naming apps? Which is correct: "account" or "accounts"
OceanMan
zhumagulov
Which cases?
OceanMan
Which cases?
If user type is more than one you can use "accounts"
Andrew
Hi guys, wondering if all can say a good django learning resource then we have a list of useful resources.
Notice how laravel world have LaraCasts, everything related is there
Wondering if Django has similar type of resource?
Vladyslav
Hello. How I can get list of choices in model? Smth like that:
def get_edit_sensor_critically(self):
return self.critically.choices
Mikhail
Andrew
Even for Ruby on Rails, there is GoRails.. also same concept. Many tutorials for so many use case
Mikhail
What do u mean about integration with react and vue? U make a backend with django and API (common case using drf ) and build independent frontend on react or vue. It's 2 different projects.
Mikhail
I suppose all of it out of django scope and more close to pure python coding
Andrew
What I mean is.. rather than looking scattered sites and blogs around the web.. wondering if there are nice full django sites that cover these
Laravel has LaraCasts
Rails has GoRails
node has eggHead (and many others)
What about Django? 🤔
Mikhail
Django has Google. Google is beat both of LaraCasts and GoRails xD
Andrew
Haha! It’s very scattered man.. these sites make it very easy to follow.
Then many have forums as well can just direct search there too. Django really needs one man 🙏
Andrew
Sometimes just for an idea how to do a complicated thing, can save many hours of searching online on google haha
Mikhail
Something like this? https://djangopackages.org/
Andrew
I saw this one but its for NodeJS world, was really hopeing someone knows similar one for Django world
https://egghead.io/
Its not 100% related to the framework, but also the technologies that will pair with it to make it meaningful, like Database, Serverless etc?
Mikhail
hmmm, still think that databases, serverless etc is out of the scope just one of the web framework
Mikhail
But anyway. You can always create that type of resource by yourself on django with your own vision of it catalog
Andrew
yea.. but without this knowledge... i might have to build it in NodeJS instead... its like a chicken and egg thing lol
Mikhail
will be interesting to see result. Espesially if will be more examples than in official documentation in official
Mikhail
Andrew
definately man, the offical docs are only very very basic. To build beautiful and useful things.. much more skill and knowledge is needed lol
Andrew
Venkatesh
How to deploy my project in aws without showing port number? i.e www.abc.com instead of www.abc.com:8000
Sanjarbek
Venkatesh
Mikhail
also fast lifehack - using masking tape for hide port part of address on monitor. Solution could working enough to demonstrate project for management. More useful lifehacks u can find on the django telegram channel 😉
White
I want to implement async views but not getting any good doc to go through
Mikhail
Not sure, but suppose, that bottleneck still will be sync connection to database
Tahur
How to connect Django API with react js /react native?
Mikhail
Just make regular API. And do regular ajax API requests from Reactjs/react native
Ali
guys i am using built-in django view to reset password
how can i validate the password to make it have 1 capital letter and 1 symbol at least?
Витек*
Question, please tell me how you are versioning the api to drf, you need exactly the structure, how to put everything in folders
Myke
Iñaki
I need create class model with field array but when I execute migrates give me error
Anonymous