Giter Site home page Giter Site logo

django-referral's People

Contributors

akuryou avatar bryant1410 avatar chris7 avatar daniellawrence avatar hmeza avatar noxan avatar zpencerq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-referral's Issues

Django 1.10 wsgi

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

Django 1.10 & migrations

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.

Admin enhancement

  • use raw_id_fields instead of select boxes for foreign keys on user model since this can get messy if we got many users
  • display user count for referrers and campaigns

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.