Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Django: How can I remove all stored messages?
I used django message framework only in one view(PasswordChangeView). Problem is that when I access to PasswordChangeView, this page shows all message in message storage such as Login successed, Logout success etc... This is my template.html: {% for message in messages %} <p {% if message.tags %} class="alert alert-{{ message.tags }} messages"{% endif %}> {{ message }} </p> {% endfor %} I want to make PasswordChangeView show message only about password, not login, logout kinda thing. How can I do this? -
Need Help to display images from model
I have a model named 'Page' and i want to store many images for each Page object. So i created a Separate Model named 'Image' as a F.K of 'Page' model. In my template,, i am displaying all the Page object as a list (using bootstrap), but for each object, i also want to show many images saved for each object, i cant figure out the loop part. I have given relavent Code below : Models.py class Page(models.Model): name=models.CharField(max_length=10,unique=True) views = models.IntegerField(default=0) slug = models.SlugField( ) #description field des=models.TextField(max_length=500,blank=False) def save(self, *args, **kwargs): # Uncomment if you don't want the slug to change every time the name changes #if self.id is None: #self.slug = slugify(self.name) self.slug = slugify(self.name) super(Page, self).save(*args, **kwargs) def __str__(self): return self.name def desti (instance,filename): return "%s/%s/%s"%(instance.page,instance.user,filename) class image(models.Model): user=models.ForeignKey(User) page=models.ForeignKey(Page) images=models.ImageField(upload_to=desti, null=False ,blank=False) Index.html {% for obj in page_list %} <div class="card" style="width: 20rem;">) {% for obj2 in obj.images %} <img class="card-img-top" src="{{ }}" alt="IMAGE GOES HERE"> <!-- want to display the images here as horizontal --> {% endfor %} <h1>this page has {{ obj.images }} images </h1> <div class="card-block"> <h4 class="card-title">{{ obj.name }}</h4> <p class="card-text">{{ obj.des }}</p> <a href="#" class="btn btn-primary">ViewDetails</a> </div> </div> <hr> {% … -
Using returned JSON object before redirect in Django? SocialAuth
I'm pretty new to Django and using python social auth. I'm trying to use a specific API to do social auth. My url redirects the user to the company's site for authorization. The URI takes me right back to my app and returns this message in the console. {'user': >, 'response': {u'access_token': u'mK1dIbTYlYECXwL9j8EjBWJepKvJGM', u'token_type': u'Bearer', u'expires_in': 172800, u'refresh_token': u'1PE2oNM8Yu8XVFvxxrlt1BGK3QuxXi', u'scope': u'user:write messages:read labs:write patients:write billing:write user:read labs:read patients:read calendar:write labs patients:summary:write patients patients:summary:read user clinical:read billing:read messages:write clinical:write calendar patients:summary calendar:read'}} The User is successfully authenticated, but I want to be able to actually capture this returned JSON rather than having it directly show up on my console. How would I go about doing this? Normally I would use AJAX to make a POST request and use the returned data that way, but I'm sure there has to be a way in Django to access this data. -
How to make redis BROKER_URL dynamic on deployment to AWS instance
I'm deploying a Django app which uses celery task and has redis as the broker backend. I'm using docker for deployment and my production server is an amazon aws instance. The problem I'm facing is that the django settings is different for localhost: BROKER_URL = 'redis://localhost:6379' CELERY_RESULT_BACKEND = 'redis://localhost:6379' and all my unit tests work. For docker it fails unless I change it to BROKER_URL = 'redis://redis:6379' CELERY_RESULT_BACKEND = 'redis://redis:6379' My question is, how do I identify the redis broker url in my deployment server? Will it be redis://redis:6379? PS: For heroku server there's an add-on for identifying the redis url call REDISTOGO_URL. Is there something similar for amazon aws server? -
Copy template in a test file
In Django, I'm trying to copy the content of a template in a test file with python manage.py dumpdata --indent=2 configurations.template | >> test.txt command, but it didn't work. Could anyone be able to tell me how to fix this issue? Thanks in advance! -
Django 1.7.1 dumpdata progress bar
I have an existing project in django 1.7.1, but from django 1.9.1 a new feature had been introduced in the dumpdata command (--output) python manage.py dumpdata --output backup.json On executing this command we can see the progress bar in the terminal(Progress of the dumpdata to a json file). Is there any way to achieve this in django 1.7.1, can we do any additional functionalities in our project?, please help me for this.Thanks in advance. -
NoReverseMatch for Django views
I can't get this error fixed though most of the times it is pretty straight forward and the function causing the issue is mentioned in the code. Following are details: View: class ProductReviewList(ListView): template_name = 'catalogue/reviews/review_list.html' context_object_name = "reviews" model = ProductReview product_model = Product def get_queryset(self): qs = self.model.objects.approved().filter(product=self.kwargs['product_pk']) self.form = SortReviewsForm(self.request.GET) if self.form.is_valid(): sort_by = self.form.cleaned_data['sort_by'] if sort_by == SortReviewsForm.SORT_BY_RECENCY: return qs.order_by('-date_created') return qs.order_by('-score') def get_context_data(self, **kwargs): context = super(ProductReviewList, self).get_context_data(**kwargs) context['product'] = get_object_or_404( self.product_model, pk=self.kwargs['product_pk']) context['form'] = self.form return context display_tag.py from django import template import feature_hidden register = template.Library() def get_parameters(parser, token): args = token.split_contents() if len(args) < 2: raise template.TemplateSyntaxError( "get_parameters tag takes at least 1 argument") return GetParametersNode(args[1].strip()) class GetParametersNode(template.Node): def __init__(self, field): self.field = field def render(self, context): request = context['request'] getvars = request.GET.copy() if self.field in getvars: del getvars[self.field] if len(getvars.keys()) > 0: get_params = "%s&" % getvars.urlencode() else: get_params = '' return get_params get_parameters = register.tag(get_parameters) @register.tag() def iffeature(parser, token): nodelist = parser.parse(('endiffeature',)) try: tag_name, app_name, = token.split_contents() except ValueError: raise template.TemplateSyntaxError( "%r tag requires a single argument" % token.contents.split()[0]) if not (app_name[0] == app_name[-1] and app_name[0] in ('"', "'")): raise template.TemplateSyntaxError( "%r tag's argument should be in quotes" % tag_name) … -
url.py in django, what does ^ do?
So ive just started learning django and im currently messing around with the urls.py file. I was wondering if someone could explain to me what the "^" at the start of the url does? I posted some code too if what I said doesnt make sense. url(r'^$', post_timeline), -
How to skip validation for Django Field in ModelForm with Select2?
I have a form in models.py of my django project: class Profile(models.Model): choices = (("choice1", "choice1"), ("choice2", "choice2"), ("choice3", "choice3")) field = models.CharField(choices=choices) In forms.py: class ProfileForm(ModelForm): class Meta: model = Profile fields = ["field"] widgets = {"field": Select2TagWidget} I'm using the Select2TagWidget to make my choice field look better, but also, theoretically, to allow the user to enter in choices that aren't in the initial list. The frontend for this works perfectly fine, and the user can enter other values. However, when the user goes to submit with a new value, django form validation blocks the save into the database. So my problem is: How do I keep Select2 tagging, but force django to return True on calling is_valid() when the only "error" is that the user entered a new value? I've tried overwriting many of the classes, to no avail. I've also seen some answers that involve using special widgets, but I cannot use them because I need to use the Select2 widget. -
Django Order Ascending & Descending
Let say, I want to order the Threads by total Votes, Views and Comments. But they order models is instanced from Thread model. here is my models.py class Thread(models.Model): .... rating = RatingField(can_change_vote=True) def get_comments(self): return Comment.objects.filter(thread__pk=self.pk) def get_visitors(self): return Visitor.objects.filter(thread__pk=self.pk) def get_rating_frequence(self): return self.rating.get_difference() class Comment(models.Model): thread = models.ForeignKey(Thread, ...) .... class Visitor(models.Model): thread = models.ForeignKey(Thread, ...) .... and the model of Vote using django updown For more: https://github.com/weluse/django-updown/blob/master/updown/models.py#L20 class Vote(models.Model): content_type = models.ForeignKey(ContentType, related_name="updown_votes") object_id = models.PositiveIntegerField() .... And here is my views.py def threads(request): .... template_name = 'foo/bar/threads.html' threads = Thread.objects.published() context = { 'threads': threads, .... } return render(request, template_name, context) Question is, how i can order multiple models bassed on Thread model? -
ogrinspect: "CommandError
I was following geodjango's tutorials and got stuck at the ogrinspect command. Some heads up: I have included django.contrib.gis in INSTALLED_APPS I have gdal (2.1.0) library installed in my machine, and I am using python 3.5.2 PostGIS works well. I can migrate the WorldBoarder model as directed by the tutorial. ( I guess db is irrelevant here, nevertheless) When I run the command: $python manage.py ogrinspect world/data/TM_WORLD_BORDERS-0.3.shp WorldBorder srid=4326 --mapping --multi It gives me: CommandError: Unknown error code: "1111556228" I search for the answer for a while, but it seems not many people share the same experience. Anybody have a clue what I am missing here? -
Redirect to different App view directory from urls.py
I have URL definitions in my wagtail blog's app directory(blog/urls.py), and I would like to reference a view in my search app directory (search/views.py). The current URL definition is url(r'^search/$', search, name='search'). I don't want to duplicate common search views in every app's views file. How do I format the URL in my blog app to use the search view in search/views.py? -
Your PYTHONPATH points to a site-packages dir for Python 3.x but you are running Python 2.x
Running on macOS 10.12, trying to install Django using pip install Django==1.10.5 And I get this error: Your PYTHONPATH points to a site-packages dir for Python 3.x but you are running Python 2.x! PYTHONPATH is currently: "/usr/local/lib/python3.6/site-packages:" You should `unset PYTHONPATH` to fix this. I have Python3 and Python2.7 (since it comes with Mac) but I really only want to use Python3 for pretty much everything. Pretty new to using / configuring Python, has anyone else come across this? -
Django EmailMessage send() works and then gives HTTP Error 400: Bad Request
I have two forms on my clients site; one on the homepage and one on the contact page. I will test the forms one minute and they work fine and then I'll test again at later and I get HTTP Error 400: Bad Request - its driving me nuts because I can't figure it out. I disable one of the forms to troubleshoot, but that did nothing. Below are my forms; please tell me I am missing something obvious :) Form Template <form action="" role="form" method="post" id="contactForm"> {% csrf_token %} {{ form.as_p }} <div class="form-group"> <button class="btn btn-color-out btn-block" type="submit">Send Message</button> </div> </form> View def contact(request): form_class = ContactForm if request.method == 'POST': form = form_class(data=request.POST) messages.add_message(request, messages.SUCCESS, 'Thank you, your message was received.') if form.is_valid(): fullname = request.POST.get('fullname', '') phone_number = request.POST.get('phone_number', '') email_address = request.POST.get('email_address', '') message_content = request.POST.get('message_content', '') subject = 'Contact Information Submitted from Trust and Beneficiary Advocates' from_email = settings.DEFAULT_FROM_EMAIL recipient_list = ['kfritz@*****.com', 'charles@*****.com'] ctx = { 'title': 'Contact Us', 'subject1': subject, 'fullname': fullname, 'phone_number': phone_number, 'email_address': email_address, 'message_content': message_content } message = get_template('email_forms/contact_form_email.html').render(Context(ctx)) msg = EmailMessage(subject, message, from_email=from_email, to=[email_address], bcc=recipient_list) msg.content_subtype = 'html' msg.send() return redirect('/thank-you/') return render(request, 'pages/contact.html', { 'form': form_class, 'title': 'Contact … -
Django: how to pass object between views when pickle serializer fails
I need to be able to pass my object solo between view functions. Presume that the problem with solo is that it opens a TCP but not sure. So, what's a way to pickle solo, or how could I do this otherwise? The error: My views.py: def index(request): context = {'time_estimate': '5', 'GOOGLE_API_KEY': 'AIzaSyBN-Q9c7O40j-z3TRcc3KFHRRcpP290s-8'} solo = drone.drone() request.session['solo']= solo print "request out, ", request.session.get('solo') return render(request, 'skyway_app/index.html', context) def coordinates(request): if 'solo' in request.session: solo = request.session.get('solo') print "solo in request.session" else: print "error, solo not in request.session" print "solo 2 used: ", solo My settings.py SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'skyway_app' ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] My drone.py (solo) class drone(object): def __init__(self): print 'Connecting to vehicle.' self.solo = dronekit.connect('tcp:127.0.0.1:5760', wait_ready=True) self.lat = 9.32876637044429 self.lng = -120.18753290176392 -
Trying to configure a django application to use mod_wsgi
I keep receiving this error in the apache error.log when I visit the URL for this project: [Fri Jan 20 21:04:16.143990 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] mod_wsgi (pid=18618): Target WSGI script '/srv/botbot/src/botbot/botbot/wsgi.py' cannot be loaded as Python module. [Fri Jan 20 21:04:16.144124 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] mod_wsgi (pid=18618): Exception occurred processing WSGI script '/srv/botbot/src/botbot/botbot/wsgi.py'. [Fri Jan 20 21:04:16.144195 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] Traceback (most recent call last): [Fri Jan 20 21:04:16.144255 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] File "/srv/botbot/src/botbot/botbot/wsgi.py", line 9, in <module> [Fri Jan 20 21:04:16.144335 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] application = get_wsgi_application() [Fri Jan 20 21:04:16.144381 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] File "/srv/botbot/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application [Fri Jan 20 21:04:16.144437 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] django.setup() [Fri Jan 20 21:04:16.144487 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] File "/srv/botbot/lib/python2.7/site-packages/django/__init__.py", line 17, in setup [Fri Jan 20 21:04:16.144540 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) [Fri Jan 20 21:04:16.144586 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] File "/srv/botbot/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__ [Fri Jan 20 21:04:16.144638 2017] [:error] [pid 18618:tid 140192977487616] [remote 66.90.146.30:326] self._setup(name) [Fri Jan 20 21:04:16.144675 2017] [:error] … -
Django ImportError 'No module named '
I'm trying to run a django app but hitting this error when trying to load the page from the browser: No module named views The offending line in urls.py is from landpage.views import txt The file structure looks like this: /landpage ----urls.py ----/views --------txt.py I've run the command python manage.py check --traceback and gotten the result System check identified no issues (0 silenced). I'm very new to django so I am not sure what else to check or what might be causing the issue. This project was just cloned. I have not changed anything. -
Django: accessing properties between classes and performing math on them
Forgive me, I'm a Django novice trying to add on to a system written by a wizard... Upon making a pledge, the user can choose a reward. The reward has a value and a deductible value. For example: there may be a reward worth $50 but only $40 of it is deductible. A user can donate the $50 or more, so if they donate $100, everything is deductible except for $10. I have two classes: "Pledge" and "Reward" and need to do a bit of math using a new field in "Reward" to determine how much of a pledge is deductible. class Pledge(models.Model): content_type = models.ForeignKey(ContentType) object_id = models.PositiveIntegerField() content_object = generic.GenericForeignKey() project = models.ForeignKey('Project') amount = models.DecimalField(decimal_places=2,max_digits=10, default=D('0.00')) reward = models.ForeignKey('Reward',blank=True,null=True, on_delete=models.SET_NULL) I simply copied the reward property above in hopes of pulling not_taxable from Reward, but I get this error: projects.Pledge.not_taxable: (fields.E304) Reverse accessor for 'Pledge.not_taxable' clashes with reverse accessor for 'Pledge.reward'. not_taxable = models.ForeignKey('Reward',blank=True,null=True, on_delete=models.SET_NULL) ... def get_deductible_total(self): return (self.amount - self.not_taxable) @property def deductible_total(self): return self.get_deductible_total() ... class Reward(models.Model): project = models.ForeignKey('Project') title = models.CharField(max_length=255) pledge_level = models.DecimalField(decimal_places=2, max_digits=10) deductible = models.DecimalField(decimal_places=2, max_digits=10,default='0') description = models.TextField(blank=True) ... def get_not_taxable(self): return (self.pledge_level - self.deductible) @property def not_taxable(self): … -
NoReverseMatch when rendering page
I seem to know where the issue is located since I can get around it, but for getting around it I have to sacrifice a function I really want to keep. Here is the relevant code in the non-working state: {% if sections %} {% for item in sections %} <a class="sections" href="{% url 'sections:generate' item.section.slug %}">{{ item.section.title }}</a> {% for subsection in item.subsections %} <p>{{ subsection.title }}</p> {% endfor %} {% endfor %} {% else %} <p>Error retrieving sections or no sections found</p> {% endif %} The problem part above is in the link tag. Let me explain by showing the related view.py: def index(request): sections = Section.objects.all() context = { 'sections': [], } for section in sections: context.get("sections").append( { 'section': section, 'subsections': get_subsections(section), } ) return render(request=request, template_name='index.html', context=context) So, 'sections' is an iterable list of items, containing for every items a dictionary with two entries. One, 'section' and one 'subsection'. There are multiple subsections for every section, this is what I really want to accomplish. Ordinarily, when not bothering with subsections and simply iterating over a list of sections works fine. The template code for that would look something like: {% for section in sections %} <a … -
How to print meaningfull error messages to the user through JsonResponse and Django
I am trying to print something relevant to the user using this Django code: try: //do things return JsonResponse({}) except Exception as e: msg = "There was an error processing your request. " \ "Please do that. (%s)?" % e.message return JsonResponse({'status': 'false', 'message': msg}, status=500) And this is my javascript code: $.ajax({ url: '{% url "create_stats" %}', type: 'post', dataType: 'json', data: $("#aform").serialize(), success: function(data) { window.location ="{% url "charts" %}"; }, error:function(xhr, status, error){ $("#msg-label").text('Action did not finish successfully. ' + xhr.responseText); } However I get this: Action did not finish successfully. {"status": "false", "message": "There was an error processing preference authorities. Please do that. (64)?"} -
lookups that span relationship. - Do all my model names need to have first capital letter
So I am currently learning about querysets and models in django. I was guided to this article from SO which states Lookups that span relationships Django offers a powerful and intuitive way to “follow” relationships in lookups, taking care of the SQL JOINs for you automatically, behind the scenes. To span a relationship, just use the field name of related fields across models, separated by double underscores, until you get to the field you want. This example retrieves all Entry objects with a Blog whose name is 'Beatles Blog': Entry.objects.filter(blog__name='Beatles Blog') This spanning can be as deep as you’d like. It works backwards, too. To refer to a “reverse” relationship, just use the lowercase name of the model. Now in my case my models are already created using lowercase. Should I be going back and capitalizing the first character in the name of the model ? -
Django rest - One to many serializer
I am using Django 1.10.5 and DjangoRest 3.5.3. I have 2 models that are related to each other with one-to-many relation. But I want the ability to create one Minisymposium with many UnregisteredOrganizers with one POST request. wanted request`s body example: { "number": 1, "title": "aaaa", "description": "aa", "status": "pending", "user": "http://localhost:8000/users/6/", "corresponding_organizer": "http://localhost:8000/users/6/", "anticipated_abstracts": 1, "anticipated_attendees": 1, "other_organizers": [{ "first_name": "oz", "last_name": "bar shalom", "email": "oz.barshalom@gmail.com", "affiliation": "aaa", "phone_number": "+1888888" }] } But it looks like I am doing something wrong because I am receiving this message on POST (I Don'tthing it is legitimate to mention the minisymposium on each object in the other_organizers list): { "other_organizers": [ { "minisymposium": [ "This field is required." ] } ] } Models: from django.db import models from phonenumber_field.modelfields import PhoneNumberField from api.resources.minisymposium.models.minisymposium import Minisymposium class UnregisteredOrganizer(models.Model): id = models.AutoField(primary_key=True) first_name = models.CharField(max_length=1000, null=False) last_name = models.CharField(max_length=1000, null=False) email = models.EmailField(max_length=254) affiliation = models.CharField(max_length=254, help_text='(institution only)') phone_number = PhoneNumberField(blank=True) minisymposium = models.ForeignKey(Minisymposium, related_name='other_organizers') and from django.db import models from api.resources.users.models.user import User class Minisymposium(models.Model): STATUS_CHOICES = ( ('pending', 'Pending'), ('approved', 'Approved'), ('denied', 'Denied')) id = models.AutoField(primary_key=True) number = models.IntegerField(default=0, null=False) title = models.CharField(max_length=100, null=False) description = models.CharField(max_length=4000, null=False) status = models.CharField(max_length=100, choices=STATUS_CHOICES, … -
How to render to another template from views in django
I've got a problem when trying to render to another template from views so I guess I'm doing something in the wrong way. I need help to find it. urls.py: urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^find_it/', include('find_it.urls')), ] find_it/urls.py urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^map$', views.map, name='map'),] In index.html I have a script wich finds user location and send it to views.py as soon as user pushes the button var URL = "{% url 'map' %}" var data_to_send;// user location ... $(document).ready(function(){ $('#pushbutton').click(function(){ var data = {'user_position': data_to_send}; $.get(URL, data, function(){success = 1;}); }); }); views.py def index(request): return render(request, 'findit/index.html', {}) def map(request): if request.method == 'GET': if 'user_position' in request.GET: user_position = request.GET['user_position'] # do smth with coordinates and produce some new data lat_lon_zip, address = find_stations(lat, lon, 10) if len(address) > 0: return render_to_response('findit/map.html', {'lat_lon_zip': lat_lon_zip, 'address':address}) The problem is in the last line. Everything else seems to work as it expected (I mean, map(request) gets data and produces some another correct data), but it does not render a new html-page to display a map and does not show me any error message. Can you give me some hint on how to solve this problem? -
django+nginx+uwsgi 404 on static files
I have a django app, using nginx and uwsgi to serve it. My static files return a 404. I have set ownership of the files to correspond to the nginx username. The path to the static folder was copied directly from terminal, and I ran collectstatic (the static files are successfully served via the django development server). I have also run chown -R username:username /home and chmod -R ug+r /home I have tried both alias and root. STATIC_ROOT is in my settings.py STATIC_ROOT = os.path.join(BASE_DIR, "static/") Here is my nginx.conf: user username; worker_processes 1; events { worker_connections 1024; } http { sendfile on; gzip on; gzip_http_version 1.0; gzip_proxied any; gzip_min_length 500; gzip_disable "MSIE [1-6]\."; gzip_types text/plain text/xml text/css text/comma-separated-values text/javascript application/x-javascript application/atom+xml; # Configuration containing list of application servers upstream app_servers { server 127.0.0.1:8080; # server 127.0.0.1:8081; # .. # . } # Configuration for Nginx server { # Running port listen 80; # Settings to serve static files location /static/ { # Example: # root /full/path/to/application/static/file/dir; alias /home/myapp/myapp/static/; } # Serve a static file (ex. favico) # outside /static directory location = /favico.ico { root /app/favico.ico; } # Proxy connections to the application servers # app_servers location / { … -
Bad filename formed by collectstatic from jquery-ui-1.12.0.min.css?
I'm using Django 1.10 with django-helpdesk 0.1.18 and am getting the following error message from collectstatic: ValueError: The file 'helpdesk/"images/ui-icons_555555_256x240.png"' could not be found with [...ManifestStaticFilesStorage]. I'm wondering if the problem is the apparently extraneous quotes in the filename. I would expect the filename to be: helpdesk/images/ui-icons_555555_256x240.png <-- No quotes not: helpdesk/"images/ui-icons_555555_256x240.png" <-- Extraneous quotes Should the filename with extraneous quotes be expected to work or am I correct in assuming that the root cause of this problem is a badly formed filename? If it's a badly formed filename, where should I go from here? P.S. I've double checked and the PNG file is indeed located in the helpdesk/images folder.