Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged django

0 votes
845 views
1 answer
    I am trying to POST data to my API. I have a model with an image field where: image = models.ImageField() I have an image on my local box, which I am ... "90", "image": "@/home/user/Downloads/tt.jpeg" } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
838 views
1 answer
    We have a web app made with pyramid and served through gunicorn+nginx. It works with 8 worker threads/processes We needed to jobs, we have chosen ... visibility, I also tagged this question with django. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
534 views
1 answer
    I'm trying to get django to upload static files to S3, but istead I'm getting a 403 forbidden error, and I'm not sure why. Full Stacktrace: ... right direction? Thank you for your time and consideration. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
741 views
1 answer
    In my model, I want a field that has a list of triplets. e.g. [[1, 3, 4], [4, 2, 6], [8, 12, 3], [3, 3, 9]]. Is there a field that can store this data in the database? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
715 views
1 answer
    I'm writing a simple real-estate listing app in Django. Each property needs to have a variable number of images. Images need to have an editable order. ... I'm a complete clutz at writing admin pages =( See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
907 views
1 answer
    I can see how to add an error message to a field when using forms, but what about model form? This is my test model: class Author(models.Model): ... is required How do I change that in a model form? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
739 views
1 answer
    For a Django App, each "member" is assigned a color to help identify them. Their color is stored in the database and then printed/copied into the ... how to generate random Hex colors in python/django. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
541 views
1 answer
    I am sure that someone has a pluggable app (or tutorial) out there that approximates this, but I have having trouble finding it: I want to be able to ... could do it better. Smile. Have you seen it? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    How can I restrict FileField to only accept a certain type of file (video, audio, pdf, etc.) in an elegant way, server-side? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I'm trying to find a way to implement both a custom QuerySet and a custom Manager without breaking DRY. This is what I have so far: class ... all of my methods in both the QuerySet and the Manager subclasses? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
758 views
1 answer
    I am launching a Django application on AWS Elastic Beanstalk. I'd like to run a background task or worker in order to run celery. I can not find ... command: "./manage.py celery worker --loglevel=info" leader_only: true Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
866 views
1 answer
    I have first_name, last_name & alias (optional) which I need to search for. So, I need a query to give me all the names that have an alias set. Only ... .objects.filter(alias!="") So, what is the equivalent to the above? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
629 views
1 answer
    I'm having issues with ManytoMany Relationships that are not updating in a model when I save it (via the admin) and try to use the new value within ... issue? Is there a signal thrown when the transaction ends? Thanks, Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I've made a migration that added a new table and want to revert it and delete the migration, without creating a new migration. How do I do it? ... to revert last migration and then I can simply delete the migration file? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
806 views
1 answer
    I am trying to deploy mod_wsgi with apache to run a django application but I am getting an error 500 internal server error The apache logs shows: [Thu Jun 23 ... it so apache goes to the virtual host I want it to though. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
470 views
1 answer
    No matter which package I'm trying to install, I get this error: error: invalid command 'egg_info' ---------------------------------------- ... ://pypi.python.org/simple/virtualenv/), version: 1.4.6 Found link https://pypi.python.org/packa...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
827 views
1 answer
    Is there a way to define a couple of fields as unique in Django? I have a table of volumes (of journals) and I don't want more then one ... as attribute in the fields journal_id and volume_number but it doesn't work. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
954 views
1 answer
    I'm currently migrating all the static files references in my project to the new {% static %} tag that django 1.5 introduced, but I'm having a problem, in some ... % trans 'Language' %}" title="{% trans 'Language' %}" /> Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I am working with configuring Django project with Nginx and Gunicorn. While I am accessing my port gunicorn mysite.wsgi:application --bind=127.0.0.1:8001 in ... page I am getting 502 Bad Gateway. What mistake am I doing? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
769 views
1 answer
    Once I change the DEBUG = False, my site will generate 500 (using wsgi & manage.py runserver), and there is no error info in Apache error log and it will ... .contrib.admindocs', 'zdm', 'portal', 'admin', 'tagging', ) Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
652 views
1 answer
    How can I log all SQL queries that my django application performed? I want to log everything, including SQLs from admin site. I saw this question and a ... a file (say all-sql.log) where all SQL statements are logged? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
622 views
1 answer
    I use the 'messages' interface to pass messages to user like this: request.user.message_set.create(message=message) I would like to include html in ... variable and render it without escaping the markup in the template. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I m trying to send a simple mail using IPython. I have not set up any models still getting this error. What can be done? Error : /home/sourabh/ ... -05 00:59:32.181872) while time zone support is active. RuntimeWarning) Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
713 views
1 answer
    I am currently defining regular expressions in order to capture parameters in a URL, as described in the tutorial. How do I access parameters from the URL as ... without a library, so I can get to know Django better. Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
724 views
1 answer
    In my model I have : class Alias(MyBaseModel): remote_image = models.URLField(max_length=500, null=True, help_text="A URL that is downloaded and cached for ... secondly, is there a better way to cache a remote image? Question&Answers:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
582 views
1 answer
    I have some code and when it executes, it throws a NoReverseMatch, saying: NoReverseMatch at /my_url/ Reverse for 'my_url_name' with arguments '()' and keyword ... ] What does this mean, and what can I do about it? Question&Answers:os...
asked Oct 16, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    This question already has an answer here: question from:https://stackoverflow.com/questions/65830519/why-python-pytz-package-has-both-asia-kolkata-and-asia-calcutta-timezones...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
885 views
1 answer
    I'm trying to make a simple library management app using Django. I don't know how to send data present in HTML table rows to the backend for storing ... .com/questions/65831673/how-to-send-data-present-in-html-table-rows-to-back-end...
asked Oct 7, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...