Fields needed
- Subscription Token (Unique)
- Product Id
- Quantity
- Product name
| { | |
| "quiz": { | |
| "start": "q_1", | |
| "questions": { | |
| "q_1": { | |
| "question": "Q1?", | |
| "choices": [ | |
| [ | |
| "q_2", | |
| "A1" |
Fields needed
| Profile: | |
| is_parent = .... | |
| def family_is_paid(self): | |
| try: | |
| parent = self.profile_parent.family | |
| if family.is_paid: | |
| return True | |
| except ObjectDoesNotExist: | |
| return False |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| # SAME AS ORIGINAL | |
| # NEW STUFF | |
| # need to do port forwarding for it to work on windows | |
| config.vm.network :forwarded_port, guest: 8001, host: 8001 | |
| Operations to perform: | |
| Synchronize unmigrated apps: gis, authhacks, rest_framework_swagger, import_export, ajaxuploader, rest_framework, push_notifications, crispy_forms | |
| Apply all migrations: authtoken, core, admin, user_sessions, contenttypes, auth | |
| Synchronizing apps without migrations: | |
| Creating tables... | |
| Installing custom SQL... | |
| Installing indexes... | |
| Running migrations: | |
| Applying core.0001_initial...Traceback (most recent call last): | |
| File "manage.py", line 10, in <module> |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: postgres-deployment | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: postgres-container | |
| template: |
| apiVersion: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: django-migrations | |
| spec: | |
| template: | |
| spec: | |
| containers: | |
| - name: django | |
| image: gitumarkk/k8_django_minikube:part_3 |
| kind: PersistentVolumeClaim | |
| apiVersion: v1 | |
| metadata: | |
| name: postgres-pvc | |
| labels: | |
| type: local | |
| spec: | |
| storageClassName: manual | |
| accessModes: | |
| - ReadWriteOnce |
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: postgres-credentials | |
| type: Opaque | |
| data: | |
| user: ZGphbmdv | |
| password: MWEyNmQxZzI2ZDFnZXNiP2U3ZGVzYj9lN2Q= |
| kind: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: postgres-service | |
| spec: | |
| selector: | |
| app: postgres-container | |
| ports: | |
| - protocol: TCP | |
| port: 5432 |