Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 20 2015 15:43

    dukeayers on master

    Final Clean up of entire code … (compare)

  • Feb 20 2015 15:37

    dukeayers on master

    Added Github Link (compare)

  • Feb 20 2015 15:28

    dukeayers on master

    Added button back to 'About' Pa… (compare)

  • Feb 20 2015 00:25

    breadraptor on master

    'about' only shows 3 most recen… (compare)

  • Feb 20 2015 00:24

    breadraptor on master

    fixed fourth campaign. info bel… (compare)

  • Feb 19 2015 20:25

    cmh553 on master

    Fourth campaign still not showi… (compare)

  • Feb 19 2015 20:07

    cmh553 on master

    New photos for each campaign. … (compare)

  • Feb 19 2015 16:07

    cmh553 on master

    Assets for each campaign. Stil… (compare)

  • Feb 19 2015 08:02

    breadraptor on master

    new form added for the gerbil d… (compare)

  • Feb 19 2015 05:28

    dukeayers on master

    Code Reformat (compare)

  • Feb 19 2015 05:19

    breadraptor on master

    added titles to all pages and … (compare)

  • Feb 19 2015 05:13

    breadraptor on master

    combined pic and description on… (compare)

  • Feb 19 2015 04:52

    breadraptor on master

    reordered address gathering for… (compare)

  • Feb 19 2015 04:30

    breadraptor on master

    minor color changes so that the… (compare)

  • Feb 19 2015 04:12

    cmh553 on master

    Final description Last campaig… (compare)

  • Feb 19 2015 03:54

    dukeayers on master

    Adjusted the lists page Made t… (compare)

  • Feb 19 2015 03:36

    dukeayers on master

    Adjusted Migrations File Had t… (compare)

  • Feb 19 2015 03:32

    dukeayers on master

    Adjusted About page Made a mor… (compare)

  • Feb 19 2015 03:20

    cmh553 on master

    Campaign Descriptions (compare)

  • Feb 19 2015 03:09

    cmh553 on master

    New campaigns Adding two new c… (compare)

lmk243
@lmk243
Cool thanks I'll see if I can get my page working
lmk243
@lmk243
Having some issues getting my page to show up. I added it to the 0002 file in migrations but it's not showing up.
breadraptor
@breadraptor
did you make a new migration, flush the db, then migrate?
lmk243
@lmk243
Said it was up to date when I tried to make a migration
breadraptor
@breadraptor
yeah you have to make a brand new one
do 'python manage.py makemigrations agency --empty'
then copy paste everything from 0002 into the new one (probably called 0003 or whatever)
lmk243
@lmk243
Okay I'll try that thanks
breadraptor
@breadraptor
then do 'python manage.py flush' and say yes, then do 'python manage.py migrate'
this made the cookie campaign on campaign/2 oddly but i'm working on that...
lmk243
@lmk243
That worked thanks :) But the form fields from campaign are missing. Not sure how to add those
breadraptor
@breadraptor
in campaign.html you might have to change campaign.id==1 to campaign.id==2. this is a temporary fix... duke explained to me that the ID is auto-incremented but when we flush it it doesn't recent the increment...
lmk243
@lmk243
Okay I figured it had to be an offset issue. Thanks I'll try that
Yeah mine was now id 3 since the first was id 2 so I changed it to campaign.id == 3 and that fixed it
lmk243
@lmk243
Thanks so much for all the help :D
breadraptor
@breadraptor
i see. this is clearly some kind of internal django issue. I'm gonna try hardcoding the PKs.
np!
lmk243
@lmk243
Okay shall I commit my page?
My awesome glitter bomb campaign haha
breadraptor
@breadraptor
do it!
make sure to commit the migration too
lmk243
@lmk243
Yep I'll copy my version and replace the old
Is the 0002 file needed anymore?
breadraptor
@breadraptor
you can leave it in, i'm not sure if deleting it would mess up people on pycharm.
they just need to call migrate and then merge the two
lmk243
@lmk243
Yeah I got a 0004merge file in there too for some reason. Think I had to merge or it wouldn't let me run it
breadraptor
@breadraptor
yeah
lmk243
@lmk243
keep that one too?
Duke Ayers
@dukeayers
Honestly, the best way I found to do this is to drop all of the tables in the db and then makemigration again
lmk243
@lmk243
I did that but it forced me to merge by giving me an error. Pushed it up and it should be working
Duke Ayers
@dukeayers
Just updated that for you
Just needed to delete the second migration and delete the merged file as well
lmk243
@lmk243
Thanks so much :)
Duke Ayers
@dukeayers
So I suck... sorry about the fifty updates just now
Duke Ayers
@dukeayers
Alright, so I am going to call it good on the project. I made a few adjustments
breadraptor
@breadraptor
did a few cosmetic changes :) before we turn this in, we should do some auto indenting if that's a thing for html
Duke Ayers
@dukeayers
What do you mean??
Duke Ayers
@dukeayers
I did the auto indent on the thanks page but it looks like we are pretty good in almost all of the files
pycharm has an auto format
breadraptor
@breadraptor
that's all i meant, i know in virtual worlds he marked people off for having weird indents
breadraptor
@breadraptor
I made a new form for the gerbil delivery so we have more than one. :D let me know if anything's wrong
Christopher Heiser
@cmh553
Yeah is there anything else to be done? Looks like we hit all the requirements.
breadraptor
@breadraptor
fourth campaign is in now but you have to flush your database and migrate again to see it. it's description is still 'test test' though
Duke Ayers
@dukeayers
We all good meow?
aa2468
@aa2468
guys I'm having a problem. i ran python manage.py make migrations and its telling me there is an error and i need to merge. when i ran the merge command i got another error "Could not find common ancestor of set([u'0008_auto_20150219_1718', u'0007_auto_20150219_0053', u'0003_auto_20150219_0203'])"
Duke Ayers
@dukeayers
I fixed that issue
Duke Ayers
@dukeayers
Added the github link so we should be good to go
Duke Ayers
@dukeayers
Alright, I made sure we have no unnecessary files in the project (I deleted the meeting notes but kept the citations), and I also ran the "Code Format" tool on all of the pages, deleted any unused code, and made sure we were following PEP8, so we shouldn't get any points off in regards of coding practices.
Great job, guys!
breadraptor
@breadraptor
thanks for doing that cleanup Duke!