andrewebdev / django-adzone

A django application to manage advertising and advertising zones.
BSD 3-Clause "New" or "Revised" License
87 stars 39 forks source link

Im having problem adding banners #5

Closed Asinox closed 12 years ago

Asinox commented 14 years ago

Hi guys, im having problem with adding new banners, and i just got the error message: Please correct the following error

without any more data, i cant see where and why happen this error

Thanks

andrewebdev commented 14 years ago

That error seems very strange. Is there any traceback in the terminal? If you run django with debug = True, do you get the django error message?

Asinox commented 14 years ago

Hi, thanks for reply:

im adding the banner via the django-admin, i have one banner there, but i don't know why i can add more banners.

i have debug = True Django version is: 1,2,1, final,0

i dont getting the django error message with debug True

:(

Thanks

Asinox commented 14 years ago

The correct message is: Please correct the error below.

andrewebdev commented 14 years ago

Hi again,

This is very strange. I dont have any such errors in django-adzone. Are you sure it's not something else creating this error for you? Maybe another app that you are using in conjunction?

Also, which version of django-adzone are you using? Are you using the latest code? Have you used the older version of adzone before, and recently upgraded?

Asinox commented 14 years ago

hi, thanks for reply im using 0.2 i downloaded again from here, and the same error.

i have python2.6 i dont know if there is the error, i dont khow where is the problem, check this images about it

http://stackoverflow.com/questions/3567547/how-know-where-is-the-error

Asinox commented 14 years ago

Im installed adzone in my local machine, a new project with just this app and the error is the same...

Asinox commented 14 years ago

OK, i know where is the error.

There's another field named "Advertiser", but Chrome dont display this field, i dont know why. sorry i think there is not error, just a Chrome "bug".

FF,Opera, IE are showing the complete form.

Thanks

walnutist commented 14 years ago

I ran into exactly the same issue and eventually I do figure it out :) It is because the AdBlock Plus plugin I had in my firefox, and I assume that in either your or my Chrome there must be sth similiar to basically hide all elements with the CSS class 'advertiser'. So no it is not an adzone code bug and yes this is really annoying somehow.

So if possible andrewebdev would you please check the codebase and make sure the advertiser field rendered in the admin application has no 'dangerous' CSS classes attached? Thanks

walnutist commented 14 years ago

Oh, btw, right now my walkaround for this is to have a custom change_form_template for the AdBaseAdmin class.

andrewebdev commented 14 years ago

Sorry guys, my email went down for a couple of days and I never received notifications that you guys were commenting on issues :( .... I'll read throught them all tonight and reply.

andrewebdev commented 14 years ago

Just read through everything now. Yes, very annoying I'll check and update :)

andrewebdev commented 14 years ago

Hmm, do we know how the adblock plugins usually work? Do they just search for a single class "advertiser" or does it look for a class containing the text "advertiser".

Simply changing the css to "advertiser_field" might not work if these plugins use the latter method.

andrewebdev commented 14 years ago

I'm tempted to change the "advertiser" field to "ad_provider" or just "provider". This is the quickest solution that does not involve templates.

Any thoughts?

andrewebdev commented 13 years ago

Changed the verbose_name for these fields, and hoping that this will fix the issue. If however the adblock plugins uses the ID, then we may need a different work-around.

Let me know if you still have this issue on the latest 'dev' branch.