These are chat archives for dukeayers/cs399_agency

17th
Feb 2015
Duke Ayers
@dukeayers
Feb 17 2015 00:45
Hey Guys! You will have to run the following command if you want to be able to migrate and grab all of the model data we are currently using
pip install django-localflavor
breadraptor
@breadraptor
Feb 17 2015 00:47
oh ok, cool :)
Duke Ayers
@dukeayers
Feb 17 2015 00:47
Sorry I couldn't respond on FB, I'm at work :(
breadraptor
@breadraptor
Feb 17 2015 00:47
should have read above. sorry
np
Duke Ayers
@dukeayers
Feb 17 2015 00:47
Don't sweat it!
breadraptor
@breadraptor
Feb 17 2015 01:01
sorry I'm a little confused. so the 'about' page currently has the cookie ad on it... should that be an 'about' page for our advertising company instead? should the 'our promotions' button lead to the lists.html?
Duke Ayers
@dukeayers
Feb 17 2015 02:05
Yeah it needs to be rearranged
The lists page should have all of that campaign stuff and the about page should have what we are about
breadraptor
@breadraptor
Feb 17 2015 03:45
hey, can someone possibly explain the logic behind the campaign URLs line? " url(r'^campaign/(?P<question_id>\d+)/$', campaign, name="campaign"),"
David Miller
@TurtleDynasty
Feb 17 2015 03:46
duke, it looks like you added that
Duke Ayers
@dukeayers
Feb 17 2015 03:47
What do you need to change it for??
Thanks, David!
Oh
breadraptor
@breadraptor
Feb 17 2015 03:47
I don't need to change it, I just want to understand it lmao
Duke Ayers
@dukeayers
Feb 17 2015 03:47
Fuck
My bad
I misread, so sorry!
breadraptor
@breadraptor
Feb 17 2015 03:47
np
Duke Ayers
@dukeayers
Feb 17 2015 03:47
It is a regex that looks for campaign as the first URL and then passes the number that follows it
I.E. if you type in : campaign/1
That will take you to the campaign with the unique id of 1 (cookie drive) because that is what is defined in the db
You can follow the URL to the views and it might help a bit
breadraptor
@breadraptor
Feb 17 2015 03:50
where does cookie drive get the id of 1? I don't see it in the migration
Duke Ayers
@dukeayers
Feb 17 2015 03:50
So, when you don't declare a primary key for a table, it automatically assumes that you want it to auto-increment
meaning
if we create a table with first name and last name but we don't specify which is the primary key, then Django will make an additional column named "id" that will auto increment
so typical data could be
1 John Smith
2 Jane Doe
etc.
breadraptor
@breadraptor
Feb 17 2015 03:52
oh ok
thanks!
Duke Ayers
@dukeayers
Feb 17 2015 03:52
For sure! Let me know if you need any more help!
aa2468
@aa2468
Feb 17 2015 04:21
guys, i added a poster field in the campaign table. i hope its fine with everyone
aa2468
@aa2468
Feb 17 2015 04:27
i just added a new campaign. i will start working on a thank you page so i would pass the promotional code in it
breadraptor
@breadraptor
Feb 17 2015 04:28
cool i'm working on the about page right now
did you push your changes abdul?
aa2468
@aa2468
Feb 17 2015 04:31
no not yet. i want to make sure everything is working properly first.
breadraptor
@breadraptor
Feb 17 2015 04:36
ok!
lmk243
@lmk243
Feb 17 2015 04:50
Wait so we're not going with the cookie idea?
breadraptor
@breadraptor
Feb 17 2015 04:50
yeah, it just has a separate page now!
it's one of the many campaigns that we're doing as an ad company. at least that's how i understand it?
lmk243
@lmk243
Feb 17 2015 04:52
Are there any changes I need to make?
Just kinda lost since I didn't get feedback on my pages
breadraptor
@breadraptor
Feb 17 2015 04:57
yeah i wasn't trying to step on toes. I just started looking at stuff today to be honest and I think things got moved around? so the cookie promo is our first campaign.
lmk243
@lmk243
Feb 17 2015 04:58
Oh so what is the agency name? I'll update my pages
breadraptor
@breadraptor
Feb 17 2015 05:00
Sea Side Advertising
sorry about the confusion!
lmk243
@lmk243
Feb 17 2015 05:01
Okay what do we specialize in? I can fix it now if it hasn't been fixed
breadraptor
@breadraptor
Feb 17 2015 05:01
um I think David updated the about page text?
lmk243
@lmk243
Feb 17 2015 05:02
Ah okay anything I can do to help now? Sorry I'm a bit behind
breadraptor
@breadraptor
Feb 17 2015 05:03
right now i'm gonna wait until Abdul commits his stuff and see how that changes things. I dont really know! haha :)
lmk243
@lmk243
Feb 17 2015 05:05
Same haha please let me know if I can do something to help. I kinda guessed with the cookies idea since that's what we talked about
breadraptor
@breadraptor
Feb 17 2015 05:13
yeah no problem!!
aa2468
@aa2468
Feb 17 2015 05:13
im not changing anything major. i just added a campaign to the database and i am building a thank you page
lmk243
@lmk243
Feb 17 2015 05:24
I just linked the cookie promo to the campaign list page
Should the cookie promo be listed on the about page?
aa2468
@aa2468
Feb 17 2015 05:59
ok i just pushed the thank you page modified the views and urls accordingly
i also redirected the user to the thank you page after submitting a form
thanks.html looks pretty basic right now. i'll modify it to look nicer later
aa2468
@aa2468
Feb 17 2015 06:05
im also working on a new campaign i'll commit when its finished
breadraptor
@breadraptor
Feb 17 2015 19:23
I wanted to have like, the "3 most recent promos" on the about page... because it's so bare now! so that's why the cookie is on there right now
Christopher Heiser
@cmh553
Feb 17 2015 20:42
Alright I have time to do some work. What's needing to be done at the moment?
lmk243
@lmk243
Feb 17 2015 22:14
Ah alright that makes sense. I'll probably add a header to the about page then
lmk243
@lmk243
Feb 17 2015 23:46
I added a header but I'm getting an operational error on the about page when trying to view