byteweaver / django-referral Goto Github PK
View Code? Open in Web Editor NEWA small django application for marketing using referral links.
License: MIT License
A small django application for marketing using referral links.
License: MIT License
When I add this app to installed apps and add the middleware I got this error
django.core.exceptions.ImproperlyConfigured: WSGI
application 'keydex.wsgi.application' could not be loaded;
Error importing module: 'Module "keydex.wsgi" does
not define a "application" attribute/class'
When I remove the app, the error disappears
!!
Running makemigrations
on a fresh setup results in a creation of a new migration:
python3 manage.py migrate
Operations to perform:
Apply all migrations: admin, ..., support
Running migrations:
Applying referral.0001_initial... OK
python3 manage.py makemigrations
Migrations for 'referral':
/.../venv/lib/python3.5/site-packages/referral/migrations/0002_auto_20161128_1603.py:
- Alter field pattern on campaign
Here is the migration file:
# -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-11-28 16:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('referral', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='campaign',
name='pattern',
field=models.CharField(blank=True, help_text='All auto created referrers containing this pattern will be associated with this campaign', max_length=255, verbose_name='Referrer pattern'),
),
]
I'm in Django 1.10.1, haven't checked previous versions. It looks like initial migration has to be updated.
!
add a pattern field to campaigns and add all auto created referrers with that pattern to the specific campaign
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.