manuelnaranjo / proximitymarketing

Automatically exported from code.google.com/p/proximitymarketing
0 stars 0 forks source link

campaign files without chances number #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.when you create campaign and you add some files to it without putting and 
number in the chance field , also i made start time and start date but in the 
end date and end time i leave them empty without any numbers 

2- same error happen when i try to delete some campaigns  

output is :

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/cherrypy/wsgiserver/__init__.py", line 1174, in communicate
    req.respond()
  File "/usr/lib/pymodules/python2.6/cherrypy/wsgiserver/__init__.py", line 544, in respond
    self._respond()
  File "/usr/lib/pymodules/python2.6/cherrypy/wsgiserver/__init__.py", line 556, in _respond
    response = self.wsgi_app(self.environ, self.start_response)
  File "/opt/openproximity2/libs/django/core/servers/basehttp.py", line 651, in __call__
    return self.application(environ, start_response)
  File "/opt/openproximity2/libs/django/core/handlers/wsgi.py", line 241, in __call__
    response = self.get_response(request)
  File "/opt/openproximity2/libs/django/core/handlers/base.py", line 134, in get_response
    return self.handle_uncaught_exception(request, resolver, exc_info)
  File "/opt/openproximity2/libs/django/core/handlers/base.py", line 166, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/openproximity2/libs/django/views/defaults.py", line 23, in server_error
    t = loader.get_template(template_name) # You need to create a 500.html template.
  File "/opt/openproximity2/libs/django/template/loader.py", line 81, in get_template
    source, origin = find_template_source(template_name)
  File "/opt/openproximity2/libs/django/template/loader.py", line 74, in find_template_source
    raise TemplateDoesNotExist, name
TemplateDoesNotExist: 500.html

What version of the product are you using? On what operating system?

openproximity2 on ubutu 9.10

Please provide any additional information below.

Original issue reported on code.google.com by omar.fad...@gmail.com on 18 Sep 2010 at 1:21

GoogleCodeExporter commented 9 years ago
i'm using openproximity2-rc1 on ubuntu 9.10

Original comment by omar.fad...@gmail.com on 18 Sep 2010 at 1:24

GoogleCodeExporter commented 9 years ago
Could you please modify /opt/openproximity2/django-web/settings.py and set the 
lines that say

DEBUG = False
TEMPLATE_DEBUG = False

to
DEBUG = True
TEMPLATE_DEBUG = True

Original comment by naranjo....@gmail.com on 18 Sep 2010 at 1:31

GoogleCodeExporter commented 9 years ago
when i change the lines which you mentioned i was able to create the campaign 
but i can't view it or modify it again and i got this page which i try to open 
it 
 the attached file contain what i got when i tried to open it 

Original comment by omar.fad...@gmail.com on 18 Sep 2010 at 3:31

Attachments:

GoogleCodeExporter commented 9 years ago
the reason which push me to leave the campaign files chance without any numbers 
is to activate the random transmission of the campaign files  but it doesn't 
work also 

Original comment by omar.fad...@gmail.com on 18 Sep 2010 at 3:36

GoogleCodeExporter commented 9 years ago
Ok you find a little bug, we need to mark chances as a non nullable field. If 
you want ti to be random then put a number < 1.0 in there, but don't leave it 
empty.

Original comment by naranjo....@gmail.com on 18 Sep 2010 at 11:24