These are chat archives for c1phr/cs399_theatre

20th
Feb 2015
ccblazer44
@ccblazer44
Feb 20 2015 03:21
OK so I have been totally slammed this week and never got a chance to work on this
I just pulled down, migrated, and installed bootstrap3 but I'm still just getting a default django start page when I runserver. Anybody else having this problem?
ccblazer44
@ccblazer44
Feb 20 2015 03:31
hmm, I can get to the /admin page but that is the only template that shows up when I run the server
what are the admin credentials?
EduardoIniguez
@EduardoIniguez
Feb 20 2015 03:32
Have you tried pulling the project and then migrating and running the project again.
ccblazer44
@ccblazer44
Feb 20 2015 03:33
yea thats exactly what I did
git pull, python3 manage.py migrate
python3 manage.py runserver
EduardoIniguez
@EduardoIniguez
Feb 20 2015 03:34
Just Python manage.py migrate
Ryan Batchelder
@c1phr
Feb 20 2015 03:34
I didn’t setup any admin page, so I don’t know if anyone else did
But I think it worked for @kbullins when he set it up yesteday, too
ccblazer44
@ccblazer44
Feb 20 2015 03:36
Hmm ok I'm not sure what was wrong but I just recloned the whole thing into a different folder and it worked fine
well, it looks pretty much done
sorry that I didn't help more guys
I'm willing to put some time in right now if anything else needs doing
EduardoIniguez
@EduardoIniguez
Feb 20 2015 03:37
The campaign section I'm not sure what he means by that.
Ryan Batchelder
@c1phr
Feb 20 2015 03:37
The campaign stuff needs to be done
I think just some fake ads or something
Make us look good
ccblazer44
@ccblazer44
Feb 20 2015 03:39
word up
I can do that
what is the difference supposed to be between campaigns and campaigns pages
Ryan Batchelder
@c1phr
Feb 20 2015 03:40
I’m not sure, I think @EduardoIniguez set those two up?
We might be good to get rid of one of those
ccblazer44
@ccblazer44
Feb 20 2015 03:42
OK I'll just put up some example ads and probably remove campaign pages
EduardoIniguez
@EduardoIniguez
Feb 20 2015 03:43
Yea I wasn't sure so I just set them up since it was in the assignment As separate tabs. I think camping pages should be removed
Ryan Batchelder
@c1phr
Feb 20 2015 03:43
Sounds good, thanks man
ccblazer44
@ccblazer44
Feb 20 2015 03:59
Do you guys think it is acceptable to put in some professional ads and credit them? It will look a lot better than whatever I make in paint
Ryan Batchelder
@c1phr
Feb 20 2015 04:00
I don’t think so, Palmer was pretty strict in 413 about everything being made by the group. He was taking off points for even public domain stuff being used
ccblazer44
@ccblazer44
Feb 20 2015 04:00
OK then
Duke Ayers
@dukeayers
Feb 20 2015 04:01
I just accidentally fucked everything, I'm so sorry.
Ryan Batchelder
@c1phr
Feb 20 2015 04:01
I don’t think the overall quality is going to knock us at all, though. I can’t imagine he expects every group to have someone who’s a pro at graphic design
ccblazer44
@ccblazer44
Feb 20 2015 04:02
OK. Get ready for some clipart ads ><
kbullins
@kbullins
Feb 20 2015 04:21
Are you in our group duke?
I'm trying to just get a form working on the Testimonial page. I've basically used the other forms as identical references at this point just to get it working. I am getting "The view agencyProject.views.reviews didn't return an HttpResponse object. It returned None instead." error and I'm really not sure why. I don't really want to push broken code.
I know you wouldn't generally let people write testimonials then display them on the page without approving them but that's what I'm going to be trying to do.
Ryan Batchelder
@c1phr
Feb 20 2015 04:36
In the views.py file, your reviews methoud needs to return an HttpResponse of some sort no matter what
And Duke just thought it would be funny to jump in our chat, he’s not in our group
kbullins
@kbullins
Feb 20 2015 04:37
I had one there exactly how the other form methods
I didn't figure he was
we are missing a guy though.
Ryan Batchelder
@c1phr
Feb 20 2015 04:37
What’s your code look like?
kbullins
@kbullins
Feb 20 2015 04:37
I pushed it, it wasn't breaking anything else
Ryan Batchelder
@c1phr
Feb 20 2015 04:38
And yeah, Alex has been MIA this whole time
The return you have at the bottom needs to be tabbed left one, otherwise it will only return for POST requests and not GET requests
kbullins
@kbullins
Feb 20 2015 04:42
omg...
Thanks.
Ryan Batchelder
@c1phr
Feb 20 2015 04:43
No problem!
kbullins
@kbullins
Feb 20 2015 04:51
im having a conflict with the last db.sqlite3 push someone did
Ryan Batchelder
@c1phr
Feb 20 2015 04:52
Uh, since the sqlite files can’t be merged or resolved, the only real solution is to reset the changes for just your local sqlite file, pull the latest, and then reapply your migration
Then you should be able to recommit the sqlite database after that
kbullins
@kbullins
Feb 20 2015 04:55
I looked at the changes made and figured id would be easier to just redo them on Eduardo's end. He was just setting up the admin page.
Ryan Batchelder
@c1phr
Feb 20 2015 04:57
If you try to just apply migrations outright now, does it re-add his stuff?
kbullins
@kbullins
Feb 20 2015 04:59
I detected no changes
He just created a user to log into the admin console and registered the two forms that existed.
Ryan Batchelder
@c1phr
Feb 20 2015 05:00
Okay, cool
kbullins
@kbullins
Feb 20 2015 05:00
I just made a really secure ... User: admin Pass: admin
Ryan Batchelder
@c1phr
Feb 20 2015 05:01
Sweet! I don’t think we’ll ever get hacked, it’s not like you used “password”!
kbullins
@kbullins
Feb 20 2015 05:01
I wrote it down and stuck it to the bottom of my keyboard just incase I forget
kbullins
@kbullins
Feb 20 2015 05:26
So, I'm trying to reference the model objects when its rendered
return render(request, 'reviews.html', {'reviews': ReviewForm.objects.all()}, {'form': form})
is it throwing the error of no objects being present because the model and the form have the same name?
Ryan Batchelder
@c1phr
Feb 20 2015 05:34
Hmm, I wonder if it has to do with the two different objects that you're passing? What happens if you move the 'form': form into the dictionary with the reviews object?
kbullins
@kbullins
Feb 20 2015 05:37
nope
Ryan Batchelder
@c1phr
Feb 20 2015 05:44
That seems weird, it should work. Actually, I wonder if it's because there's no objects in the ReviewForm table?
kbullins
@kbullins
Feb 20 2015 05:47
I have 1 object there
I'll push what I have
nvm more conflicts...
kbullins
@kbullins
Feb 20 2015 06:02
ahh no wonder...
ajs476 came out of nowhere
and started making changes to the page I was working on
Ryan Batchelder
@c1phr
Feb 20 2015 06:03
Great...
kbullins
@kbullins
Feb 20 2015 06:03
glad I reverted my changes for fake testimonials
return render(request, 'reviews.html', {'reviews' : ReviewForm.objects.all(),'form': form})
that does not work.
guessing thats what you meant?
Ryan Batchelder
@c1phr
Feb 20 2015 06:09
Yeah, that's what I meant
kbullins
@kbullins
Feb 20 2015 06:10
type object 'ReviewForm' has no attribute 'objects'
blob
Ryan Batchelder
@c1phr
Feb 20 2015 06:15
models.ReviewForm.objects.all looks like it works for me
I had to add the “models” in front
kbullins
@kbullins
Feb 20 2015 06:17
ah ha.. is was the naming. cool
Thanks for helping me debug.
Ryan Batchelder
@c1phr
Feb 20 2015 06:17
Otherwise it tries to grab the one out of the forms file
kbullins
@kbullins
Feb 20 2015 06:17
Yeah thats what I was thinking I was in the middle of renaming it
Ryan Batchelder
@c1phr
Feb 20 2015 06:17
No problem, I remembered having a similar issue but I couldn’t remember off the top of my head what it was
kbullins
@kbullins
Feb 20 2015 06:19
damnit.. im pushing over their stuff...
ccblazer44
@ccblazer44
Feb 20 2015 06:21
OK so I finished up the campaigns page
I think you and I were pushing at the same time so it merged something
this is my first class using git so I'm not sure what the significance of htat is
Ryan Batchelder
@c1phr
Feb 20 2015 06:21
If it was an automatic merge, then it should be all good
ccblazer44
@ccblazer44
Feb 20 2015 06:21
OK cool
Ryan Batchelder
@c1phr
Feb 20 2015 06:22
And yeah @kbullins I think that’s probably the only good option if he’s not going to communicate
kbullins
@kbullins
Feb 20 2015 06:22
i dumped my changes again...
next time Im writing over them
ccblazer44
@ccblazer44
Feb 20 2015 06:23
do the campaigns look allright to you guys?
kbullins
@kbullins
Feb 20 2015 06:24
you prob overwrote ajs
because he made that page a bit ago
Ryan Batchelder
@c1phr
Feb 20 2015 06:25
It looks like he only added a couple of images?
kbullins
@kbullins
Feb 20 2015 06:25
nvm its the same
ccblazer44
@ccblazer44
Feb 20 2015 06:26
uhh shit yea those arent there anymore
ill add them in
ccblazer44
@ccblazer44
Feb 20 2015 06:35
allright I think I'm about done for the day
think we're good?
kbullins
@kbullins
Feb 20 2015 06:38
good god...
why is this thing having so much issues for me
ok cool. I got the reviews page done.
ccblazer44
@ccblazer44
Feb 20 2015 06:45
badass man
Ryan Batchelder
@c1phr
Feb 20 2015 06:46
Sweet, I think we're done at that
kbullins
@kbullins
Feb 20 2015 06:46
Yeah agreed. I'm just adding a few reviews then whoever presents can use that page to show its saving and displaying
ccblazer44
@ccblazer44
Feb 20 2015 06:47
yea I just reviewed us then pushed the db
allright guys I'll see you tomorrow
ccblazer44
@ccblazer44
Feb 20 2015 16:48
lost a couple on code organization
-2.5
overall
Ryan Batchelder
@c1phr
Feb 20 2015 16:50
I had a feeling that might happen after the first group got thrown down on that
The email is ajs476@nau.edu
But I don’t know what his name is
ccblazer44
@ccblazer44
Feb 20 2015 16:56
we got it
alex sears
Ryan Batchelder
@c1phr
Feb 20 2015 16:56
Cool