Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

2017-08-22 Python×Djangoで作るHR Techサービスのメリット・デメリット

2,861 views

Published on

Python×Django構成になぜしたのか、3年半運用してみてのメリデメをまとめました。

Published in: Engineering
  • Be the first to comment

  • Be the first to like this

2017-08-22 Python×Djangoで作るHR Techサービスのメリット・デメリット

  1. 1. 

  2. 2. ▸ ▸ ▸ ▸ ▸
  3. 3. ▸ ▸ ▸ ▸ ▸
  4. 4. 
 
 
 
 
 Python×Django Python×Django Python×Django S3 Python×Flask
  5. 5. ▸ 
 ▸ ▸
  6. 6. ▸ 
 ▸ ▸
  7. 7. ▸ 
 ▸ 
 
 
 

  8. 8. from django.contrib import admin
 from apps.account.models import User
 
 
 @admin.register(User)
 class UserAdmin(admin.ModelAdmin):
 list_display = ('created', 'last_access', 'get_full_name', 'email')
 search_fields = ('email',)
  9. 9. ▸ ▸ ▸ ▸ ▸ ▸ ▸ ▸ ▸ ▸ ▸ ▸ ▸
  10. 10. ▸ ▸ ▸ ▸ MidCareerProfile.objects.filter(
 prefecture=' ', birthday__year__range=[1980, 1990]) >>> MidCareerProfile.objects.values('gender').annotate(cnt=Count('gender'))
 <QuerySet [{'gender': 'male', 'cnt': 150}, {'gender': 'female', 'cnt': 100}]> for c in Company.objects.select_related(‘category’).prefetch_related('joboffer_set'):
 print(‘{}({}): {}’.format(
 c.name,
 c.category.name,
 ‘, ‘.join(c.joboffer_set.values_list(‘title’, flat=True)),
 ))
  11. 11. ▸ ▸ ▸ ▸
  12. 12. ‣ 
 
 

  13. 13.
  14. 14. 
 
 
 ▸ 

  15. 15. ▸ 

  16. 16.
  17. 17. ▸ ▸ 


×