This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
from .models import User | |
admin.site.register([User]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf python/ | |
virtualenv --python=python3.5 python | |
source python/bin/activate | |
cd repo/dev | |
pip install -r requirements.txt | |
find . -path "*/migrations/*.py" -not -name "__init__.py" -delete | |
find . -path "*/migrations/*.pyc" -delete | |
dropdb -h localhost -p 5432 -U sharry sharry | |
createdb -h localhost -p 5432 -O sharry sharry | |
python manage.py makemigrations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-console */ | |
import React, { useState } from 'react'; | |
import { withKnobs, number, text } from '@storybook/addon-knobs'; | |
import { storyDecoratorCase } from '../../../../.storybook'; | |
import Pagination from '../Pagination'; | |
import PaginationView from '../PaginationView'; | |
import PaginationShowMore from '../PaginationShowMore'; | |
import { SomePage, SomePageContent } from './components'; | |
import { usePaginationApiBased } from './hooks'; | |
import styles from './components.scss'; |