Re: Form Page URL Not Found

2023-05-01 Thread Dylan Reinhold
name = "photo_upload"), ] You if you are going to url /pet/photoupload/ that is going to call the first one and process "photoupload" as the slug. Move the photoupload above the the wildcard entry. Dylan On Mon, May 1, 2023 at 4:21 PM Michael Starr wrote: > I made some

Re: How to get fresh air

2023-03-12 Thread Dylan Reinhold
Just go away. On Sun, Mar 12, 2023, 15:52 Michael Starr wrote: > How do you get fresh air in your house? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email

Re: Invite to join WhatsApp group

2022-08-05 Thread Dylan Reinhold
In the past 2 weeks, I have seen this same message sent over 4 times. We get it, you have a whatsapp group. Dylan On Fri, Aug 5, 2022, 10:32 Satyajit Barik wrote: > Hey Dylan, > > We do not spam anything, We try our best to help others. > > > Thanks. > > On Fri, Aug

Re: Invite to join WhatsApp group

2022-08-05 Thread Dylan Reinhold
Please stop spaming this list. Thanks. On Fri, Aug 5, 2022, 08:47 Satyajit Barik wrote: > Hey, > > Join in Whatsapp python group using the below link to get solve your > Python and Django related problems. > > https://chat.whatsapp.com/Bq2jcxLJVG50v9Wbkvz6Vy > > [Membership benefits] Here are s

Re: its urgent...

2022-06-17 Thread Dylan Reinhold
I can tell you that your subject is probably going to keep anyone who can help from helping. Regards, Dylan On Fri, Jun 17, 2022, 10:10 Abhinandan K wrote: > is anybody know how to scrap all businesses from google maps and save into > csv with selenium and whenever search that busin

Re: building mobile app

2021-07-20 Thread Dylan Reinhold
Divyesh, Please stop spamming the mailing list with your offers. Dylan On Tue, Jul 20, 2021 at 7:50 AM Divyesh Khamele wrote: > Hey > I am Divyesh Khamele, > We at PythonMate provide IT solutions for digital transformation of > business. We have experts in Python, Data

Re: Urgent

2021-03-01 Thread Dylan Reinhold
Don't put urgent as your subject if you don't want people to just block you future emails. Dylan On Mon, Mar 1, 2021, 4:16 PM Aman Khan wrote: > How to make delete request to API from the frontend, i typed the localhost > URL for API but it is redirecting me to the browsabl

Re: Explain me

2020-09-17 Thread Dylan Reinhold
Well, (r'^*$*') that is a python Regular expression syntax https://docs.python.org/3/library/re.html ^ is the start of string and $ is end of string, so it's matching on nothing. A url with nothing after the /. Dylan On Thu, Sep 17, 2020 at 1:01 PM kkwaq...@gmail.com wrote: &

Re: Is it allowed to post a job vacancy here regarding django ?

2020-08-28 Thread Dylan Reinhold
I have to login with a google account and start a form before I can even see what the job is about? That seems like a terrible way of attracting people. Dylan On Fri, Aug 28, 2020 at 12:53 AM 'BOPBO' via Django users < django-users@googlegroups.com> wrote: > We're hiri

Re: Authenticate user stalls on 302 after POST is successful

2020-08-27 Thread Dylan Reinhold
clicking submit and wait 5 seconds then refresh the admin page and i am in. I just tried in firefox and it did not freeze like chrome. Dylan On Thu, Aug 27, 2020 at 5:34 PM tiggums B wrote: > Hello, > > *SUMMARY*: > During user authentication, POST is successful but will stal

Re: Streaming Data

2020-07-31 Thread Dylan Reinhold
You can use the StreamingHttpResponse: https://docs.djangoproject.com/en/3.0/ref/request-response/#streaminghttpresponse-objects Dylan On Fri, Jul 31, 2020 at 6:46 AM Venu Gopal wrote: > Hi, I have an urgent requirement where I need to stream data from Motion > JPG to Django template

Re: Django Survey

2020-07-29 Thread Dylan Reinhold
I now see the django team used the ift link in their tweet... Thanks for forwarding this on Miracle. Regards, Dylan On Wed, Jul 29, 2020 at 10:13 AM Dylan Reinhold wrote: > This really felt spammy. And I'm surprised it ended up on the > djangoproject page. > Why is the url sho

Re: Django Survey

2020-07-29 Thread Dylan Reinhold
y not just link to the django project link. https://www.djangoproject.com/weblog/2020/jul/28/community-survey-2020/ Dylan On Wed, Jul 29, 2020 at 10:04 AM Miracle wrote: > Django Developers Community Survey 2020 > > Your feedback is highly appreciated. > > https://t.co/p7d

Re: Can we use Database with Django without creating models

2020-05-25 Thread Dylan Reinhold
? Dylan On Mon, May 25, 2020 at 7:49 PM _M_A_Y_A_N_K_ wrote: > Adding more details... > I did tried *inspectdb, *but having other different issues with this. > Here i want to purely use the legacy / existing database. > > Thanks & Regards, > - > May

Re: Watch "Ever Thought How This Games Like PUBG | CALL OF DUTY | Are developed" on YouTube

2020-05-02 Thread Dylan Reinhold
ers. https://support.google.com/mail/contact/abuse?hl=en Dylan On Sat, May 2, 2020 at 8:33 AM Larry Martell wrote: > On Sat, May 2, 2020 at 11:30 AM Kasper Laudrup > wrote: > > > > Hi Raj, > > > > On 02/05/2020 14.10, Anonymous Patel wrote: > > > https://yout

Re: Watch "Django : Table doesn't exist | Fake migrations | no such table" on YouTube

2020-04-28 Thread Dylan Reinhold
It might just be me but this feels like spam... On Tue, Apr 28, 2020 at 1:06 PM Anonymous Patel wrote: > https://youtu.be/dXlYIkXmbbw > > > Errormania upcoming with as many solutions as possible in short time so > that no Developers can stuck. > > Share like and subscribe , i liked this channel

Page freezing when loggin into admin

2020-04-19 Thread Dylan Reinhold
If I move the project to postgress seems like the issue goes away. I think they are all running uwsgi behind nginx. Anyone else notice this? Dylan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and s

Re: Capture URL values in a CBV

2020-04-17 Thread Dylan Reinhold
my_pk'] = self.kwargs['pk'] return context Then in your template you get get it as {{ my_pk }} See https://docs.djangoproject.com/en/3.0/topics/class-based-views/generic-display/#adding-extra-context Dylan On Fri, Apr 17, 2020 at 1:49 PM Tim Johnson wrote: > OK. I am ab

Re: Request to be added to the Django organisation on GitHub

2020-04-08 Thread Dylan Reinhold
If you are looking to contribute to django please see : https://docs.djangoproject.com/en/dev/internals/contributing/ If you just want to use it and code with it, see https://www.djangoproject.com/start/ Regards, Dylan On Wed, Apr 8, 2020 at 9:08 AM Nwaobi Daniel wrote: > Hi! Goodday, &g

Re: Having problem with first page of first tutorial

2019-03-23 Thread Dylan Young
There is no polls/urls.py file in your repository. Best, Casey On Sat, 23 Mar 2019 at 16:23, Ben Edwards wrote: > Ive not done https://docs.djangoproject.com/en/2.1/intro/tutorial01/ 3 > times and cant get past the first page. Its kind of dryving me nuts. > > Where I am at is in github https:

Re: Creating Objects from Annotations and Other Models

2019-03-21 Thread Dylan Young
to defer the > field or perform an immediate SELECT. > > Cheers, > Simon > > Le jeudi 21 mars 2019 13:06:04 UTC-4, Dylan Young a écrit : >> >> For example using made-up syntax: >> >> Entry.objects.create(start=F(Recurrence.objects.filter(pk=r_id), >>

Re: Creating Objects from Annotations and Other Models

2019-03-21 Thread Dylan Young
is not already present in your > app. > > On Thu, 21 Mar 2019 at 19:06, Dylan Young > wrote: > >> For example using made-up syntax: >> >> Entry.objects.create(start=F(Recurrence.objects.filter(pk=r_id), >> 'start_time')) >> >> Note that

Re: Creating Objects from Annotations and Other Models

2019-03-21 Thread Dylan Young
For example using made-up syntax: Entry.objects.create(start=F(Recurrence.objects.filter(pk=r_id), 'start_time')) Note that we can't use `get` since the whole point is to avoid all the useless round-trips to the DB. Best, Casey On Thu, 21 Mar 2019 at 13:18, Dylan Young wrote

Re: Creating Objects from Annotations and Other Models

2019-03-21 Thread Dylan Young
x expensive query and then allow you to > refresh this result periodically." - see > http://www.postgresqltutorial.com/postgresql-materialized-views/ > > > On Tuesday, 19 March 2019 17:34:11 UTC+2, Dylan Young wrote: >> >> Hey all: >> >> I often find myself

Creating Objects from Annotations and Other Models

2019-03-19 Thread Dylan Young
Hey all: I often find myself fetching data from models in the database only to run a few trivial calculations and store the info in a different model. Is there an established ORM pattern for directly creating objects in the DB based on the fields of other models? Sorry if this is obvious, but

Re: Missing manage.py & settings.py

2019-03-01 Thread Dylan Reinhold
The project django-wiki is not a django project, it is a django app. You include the app in your project. The settings file in the install document is your settings file from your django project. Dylan On Fri, Mar 1, 2019 at 5:13 PM lujate wrote: > I pip installed a Django project, but

Re: [Solved] Re: How can I refresh admin_urls

2019-02-25 Thread Dylan Reinhold
Thanks for sharing Mike. Dylan On Mon, Feb 25, 2019 at 9:35 PM Mike Dewhirst wrote: > Thank you all for your attention. Kept me going. (another resend this time > hopefully it will be laid out better) > > The fix is to initialise the self.change_form_template to None *e

Re: queries and date ordering

2019-01-08 Thread Dylan Reinhold
No you can't rely on it being the same order, if the database is re-indexed or reorged that order might change. On Tue, Jan 8, 2019 at 9:18 PM Mike Dewhirst wrote: > If I have a model with ... > > created = models.DateTimeField(auto_now_add=True) > > ... and in class Meta > orderin

Re: Django Tutorial: "NoReverseMatch" Error

2018-07-19 Thread Dylan Reinhold
You are missing the > in the path path('/results/', views.ResultsView.as_view(), name='results'), On Thu, Jul 19, 2018 at 11:18 AM, roflcopterpaul wrote: > Hello, everyone! I have run into a problem I cannot figure out. I have > spent days searching online and trying different things in my code,

Re: Django "pub_date" error

2018-07-15 Thread Dylan Reinhold
Without your code no one can help you (they will just be guessing). Post your models.py and the exact traceback error. On Sun, Jul 15, 2018 at 7:52 PM, Daniel Tobi Onipe < dexterousgur...@gmail.com> wrote: > I wrote it exactly as it is in the tutorial... > > On Mon, Jul 16, 2018, 02:56 afj afj

Re: Trouble adding users through admin site

2018-06-10 Thread Dylan Moreland
Ah, perfect! I was inheriting from django.contrib.admin.ModelAdmin instead of django.contrib.auth.admin.UserAdmin. That worked. Thanks so much! Dylan Moreland Industrial Engineering Student California Polytechnic State University, San Luis Obispo > On Jun 9, 2018, at 17:30, Daniel Germ

Trouble adding users through admin site

2018-06-09 Thread Dylan Moreland
Hello! I've created a Django app for my company to track employee infractions (missed punch, late to a shift, etc.), but I'm at a roadblock in terms of adding users. Currently, the only way I can add users is through the command line. I'd much rather be able to add users through the django.con

Re: Simple django api

2018-06-05 Thread Dylan Reinhold
What is your specific question. On Tue, Jun 5, 2018 at 6:35 PM, Django Girls Bauchi wrote: > Hello > Response pls > > On Tue, Jun 5, 2018, 10:46 PM Django Girls Bauchi > wrote: > >> Holla >> Wants to create a simple django api, that send specific data(using >> postman) and receive response. Yea

Authenticated users should only be able to see their own data

2018-05-28 Thread Dylan Moreland
table, but I'm not sure if I'm on the right track. Also, I've been developing in Django for about three days now, so I'm very new to all of this. I appreciate your patience and support. Thanks so much for your help, Dylan -- You received this message because you are subs

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Dylan Reinhold
ls to path('', include('polls.urls')), Dylan On Sat, May 26, 2018 at 8:27 AM, Dmitry Sobolev wrote: > > <https://lh3.googleusercontent.com/-iyXA6xDhmM4/Wwl8QnGSPmI/ZIw/6asAx92uuYsSM-Mm3b8RXvmLOSBfEkK1ACLcBGAs/s1600/Screen%2BShot%2B2018-05-26%2Bat%2B6.24.27%2BP

Re: Problem in part 6, CSS doesn't work

2018-05-26 Thread Dylan Reinhold
Mikko, Your css file is polls/static/polls/images/style.css but you are trying to link to polls/style.css which would be [ olls/static/polls/style.css ] Move your style.css file one folder folder down into polls/static/polls/ style.css Dylan On Sat, May 26, 2018 at 6:52 AM, Mikko Meronen

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Dylan Reinhold
Is it grounds hogs day, didn't this exact error get asked two days ago and Daniel answered then? On Fri, May 11, 2018 at 10:40 AM, Daniel Hepper wrote: > The error message is a hint that Django is not properly initialized. > > My guess is that you are using a plain python shell, which you starte

Re: while going through the django tutorial i commited a error and because of which i cannot execute the python manage.py runserver. The errors are attached below

2018-05-07 Thread Dylan Reinhold
Share your polls/url.py it's saying it cant find the url named "vote" in your polls. Dylan On Mon, May 7, 2018 at 10:14 AM, Avitab Ayan Sarmah wrote: > Detail.html: > > {{ question.question_text }} > > {% if error_message %}{{ error_message }}{% endif > %}

Re: Advertising a new Django open source project?

2018-03-26 Thread Dylan Reinhold
One thing I noticed. In your Blog model you are saving your slug every time. If you are using the slug as your URL this means if a title is changed the URL will change and anyone who had the original URL will get a 404. Probably not want you want. Dylan On Mon, Mar 26, 2018 at 10:33 AM, '

Re: Django deployment

2018-03-24 Thread Dylan Reinhold
that branch on my server, and runs migrate, collectstatic, and has my web instances restart. Dylan On Sat, Mar 24, 2018 at 6:21 AM, graeme wrote: > > > On Saturday, March 24, 2018 at 12:42:52 PM UTC, Goran Radanovic wrote: >> >> I have set up a server with Ubuntu, Nginx, uwis

Re: I NEED HELP PLEASE

2018-03-16 Thread Dylan Reinhold
https://www.djangoproject.com/start/ On Fri, Mar 16, 2018 at 8:53 AM, Daniella wrote: > PLEASE I AM NEW TO DJANGO FRAME WORK. PLEASE CAN SOMEONE PUT ME THROUGH ON > HOW TO GET STARTED, USING IT TO DEVELOP A WEBSITE AND WEB APPLICATION. > THANKS IN ANTICIPATION > > -- > You received this message

Re: The cloud panel doesn't into directory in django

2018-03-03 Thread Dylan Reinhold
going to be looking for a / between *root* and docker-bench Dylan On Sat, Mar 3, 2018 at 2:13 AM, Safa Bayar wrote: > I write cloud panel write python/django. My problem is, urls.py doesn't > access next forward directory. I use apache. when it is go to next forward, >

Re: How to access the key attributes of a model

2018-03-01 Thread Dylan Reinhold
That seems right. Do you get an error, or just no data in the url? You should also look into the slugify helper, https://docs.djangoproject.com/en/2.0/ref/utils/#django.utils.text.slugify Dylan On Thu, Mar 1, 2018 at 2:37 PM, Alberto Sanmartin < albertosanmartinmarti...@gmail.com> wrote:

Re: Trying to create a CBV that allows user to copy a record

2018-02-28 Thread Dylan Reinhold
Use the get_inital method. def get_initial(self): initial = super(MyCreateView, self).get_initial() initial['name'] = 'Testing' return initial Dylan On Wed, Feb 28, 2018 at 9:42 AM, Alexander Joseph < alexander.v.jos...@gmail.com> wrote:

Re: sqlite3.NotSupportedError: URIs not supported

2018-02-26 Thread Dylan Reinhold
The original email was from 2 years ago, So I'm sure a lot has changed. Dylan On Mon, Feb 26, 2018 at 12:49 PM, Samantha Atkins wrote: > Well this is useless to those of us actually on python3. Exactly what > version of what fixeds this issue *for* python3? > > On Wednesday

Re: Running polls tutorial, see the error message "The empty path didn't match any of these."

2018-02-24 Thread Dylan Reinhold
Ls as / (or empty), The polls app is in /polls/ (http://localhost:8000/polls/). Which at this point in the tutorial is correct. Dylan On Sat, Feb 24, 2018 at 3:09 PM, Chunjing Jia wrote: > Hi, > > I am running Django 2.0 tutorial01 for polls. I am seeing this error > message >

Re: object_list in html

2018-02-23 Thread Dylan Reinhold
hen in your template {% if is_running %}xxxxx{% endif %} Dylan On Fri, Feb 23, 2018 at 8:00 AM, Alan wrote: > Hi Constantine, > > from my views.py: > > class status(ListView): > > model = Submission > > template_name = 'status.html&#

Re: Error with django-admin.py

2018-02-17 Thread Dylan Reinhold
you get an error about python comand not found you will need to fix the path, the easy way might be to re run the python3 installer and make sure add python to the path and associdate .py files to python is checked. Dylan On Sat, Feb 17, 2018 at 8:59 AM, Tet Yeap wrote: > Hi, > > I w

Re: loading script deployment

2018-02-10 Thread Dylan Reinhold
DB. Dylan On Sat, Feb 10, 2018 at 6:14 AM, Leif wrote: > Dear Django, > > Sorry if this question has been answered. I have a Django based web > application and I just developed a loading script to upload data to > database using django model. The code is located under management/c

Re: view user profile access restriction

2018-01-28 Thread Dylan Reinhold
There are a bunch of ways to do it. Show us your view, if it's a function based view, just do your select on (username=request.user) Dylan On Sun, Jan 28, 2018 at 4:59 PM, sum abiut wrote: > Hi, > i have a django app that i want the users to be able to view only their > user pro

Re: How do I set the value of a model object's property after using `get_field()`?

2018-01-22 Thread Dylan Reinhold
just run this to create a new object with the string 'Test Text': model_instance = model() setattr(model_instance, column_name, 'Test Text') model_instance.save() Dylan On Mon, Jan 22, 2018 at 5:32 PM, Tom Tanner wrote: > Darn, is this possible with a new

Re: Django

2018-01-12 Thread Dylan Reinhold
Render to response is deprecated in version 2. https://docs.djangoproject.com/en/2.0/topics/http/shortcuts/#render-to-response Use render. Dylan On Fri, Jan 12, 2018 at 2:48 PM, Artush Ghazaryan < artush.ghazarya...@gmail.com> wrote: > NameError at /8/poqrik-ishxan/

Re: django URL pattern for an unusual address

2018-01-07 Thread Dylan Reinhold
Hit send while typing ;( page = request.GET.get('page', 1) Would give you the page number, and default to 1 if nothing was passed. Dylan On Sun, Jan 7, 2018 at 8:06 AM, Dylan Reinhold wrote: > You will just match that to / > The ?page=1 you will deal with in the view you po

Re: django URL pattern for an unusual address

2018-01-07 Thread Dylan Reinhold
You will just match that to / The ?page=1 you will deal with in the view you point / to. In you view you retrive the page value from the request object Somthing like page = request.GET.get('order', 'name') Dylan On Sun, Jan 7, 2018 at 2:18 AM, christopher okoro wro

Re: Django rest framework Best way to link and display value.

2018-01-04 Thread Dylan Reinhold
| But i have a feeling this is a very troublesome way to do it. Why do you have this feeling? Foreign key to another table sounds fine. If you don't think that list will change much you could do it as a choice. https://docs.djangoproject.com/en/2.0/ref/models/fields/#choices Dylan On Thu

Re: Django rest framework viewset and its url

2018-01-04 Thread Dylan Reinhold
That link is not valid, and without seeing your views no one will be able to help. Dylan On Thu, Jan 4, 2018 at 7:18 PM, wrote: > For a better and more detailed question i ask, refer to here : > https://stackoverflow.com/questions/48106733/django- > rest-framework-viewset-and-url-mix

Re: Constant Invalid HTTP_HOST header spam

2017-12-19 Thread Dylan Reinhold
John, You could set the logger to send all DisallowedHost errors to a log file, then just check it ever so often for the bad domains you are looking for. Or better yet have a daily script email them to you (you can exclude your IPs then) Dylan On Tue, Dec 19, 2017 at 5:37 AM, Daniel Hepper

Re: After update, auth migration fails.

2017-12-18 Thread Dylan Reinhold
hat is the issue you are seeing. Dylan On Mon, Dec 18, 2017 at 7:19 AM, Andrew Buchan wrote: > Can anyone help with this one at all? It is: > > a) pretty critical for my project to get this update because it has a fix > for django's DecimalValidator bug which is causing a bug in

Re: Please explain "TypeError: handle_404() got an unexpected keyword argument 'exception'"

2017-12-12 Thread Dylan Reinhold
404 error process pick it up that as it's the default template to use for 404.. Make sure you have DEBUG=False for your testing. Dylan On Tue, Dec 12, 2017 at 4:09 PM, Chris Seberino wrote: > >> >> And what does your handle_404 function look like? As the error says, it &g

Re: import error

2017-12-11 Thread Dylan Reinhold
For your other error, are you are using passing the literal string Home, then enclose it in quotes. On Mon, Dec 11, 2017 at 8:03 PM, Dylan Reinhold wrote: > It does not look like you have created an app yet in your project. > > You should create one say web [ manage.py startapp web

Re: import error

2017-12-11 Thread Dylan Reinhold
settings you will need to add wed to your INSTALLED_APPS. Dylan On Mon, Dec 11, 2017 at 4:25 PM, Rabin BK wrote: > > <https://lh3.googleusercontent.com/-MtmvjB8rZXQ/Wi8hwKk2jaI/Aqs/DvhdTJsOYMQ1p71DsSjStxlSE_rMVdPvgCLcBGAs/s1600/Selection_001.bmp> > > > <https://l

Re: About 'main' app, and using it from other apps.

2017-12-10 Thread Dylan Reinhold
No, I would not think of the my_first_django folder as the main app. If you have common stuff create a new app named common or base and put your stuff in there. Dylan On Sun, Dec 10, 2017 at 7:37 AM, Marsanghas wrote: > Hi all! > > Started with Django a few days ago (version 2.0, Pyt

Re: Django 2.0 Tutorial Template

2017-12-09 Thread Dylan Reinhold
That looks fine. how about your view.py. Dylan On Sat, Dec 9, 2017 at 6:05 PM, Carl Brubaker wrote: > I copied it from the django tutorial page: > > {% if latest_question_list %} > > {% for question in latest_question_list %} > {{ question.question_text &g

Re: Django 2.0 Tutorial Template

2017-12-09 Thread Dylan Reinhold
Show us your template. Dylan On Sat, Dec 9, 2017 at 1:44 PM, Carl Brubaker wrote: > I'm not sure what is wrong, but my template doesn't load correctly. > Instead of what I'm supposed to see I get this in my web browser: > > > > > > Wh

Re: Blue colored python file in Django Project structure.

2017-11-24 Thread Dylan Reinhold
This has nothing to do with django or python. This is your IDE using colors to give you status information. Looking like you are using pycharm. By default (which you can change) blue just means the file has been updated. https://www.jetbrains.com/help/pycharm/file-status-highlights.html Dylan On

Re: Django Development server inaccessible from the browser

2017-11-24 Thread Dylan Reinhold
Is your development server the same machine you are running your browser from? If not you don't want to use localhost, you need to user the IP/domain name of the development server. What is the error you get in the browser? Dylan On Fri, Nov 24, 2017 at 2:47 AM, Harish Oraon wrote: &

Re: Callback Function Not running

2017-11-11 Thread Dylan Reinhold
Do you have a url entry above that is also matching it? On Sat, Nov 11, 2017 at 3:52 AM, yingi keme wrote: > I have a callback function(webhook) implemented below > > def call_back(request, param): > # Testnet > method='GET' > x_signature = request.headers.get('X-Signature') > pr

Re: static files in production

2017-11-07 Thread Dylan Reinhold
In production django does not serve static files. You need to configure iis to serve the files directly from your STATIC_ROOT directory. Then from your project you run manage.py collectstatic . Django will collect up all the staic files and put them in STATIC_ROOT. Dylan On Nov 7, 2017 7:21 AM

Re: django runserver

2017-10-14 Thread Dylan Reinhold
In your settings the ip address in the ALLOWED_HOST list should be a srings, so wrap it in quotes. Dylan On Sat, Oct 14, 2017 at 2:29 AM, aditya kumar wrote: > *why i m getting this error while running server?* > > -- > You received this message because you are subscribed to the G

Re: Can anyone help me in Template error?

2017-10-14 Thread Dylan Reinhold
What is the error? Also in your file tree you show your templates/accounts/login.py, you want it to be .html to match to template name in the render. Dylan On Sat, Oct 14, 2017 at 2:49 AM, wrote: > my code that caused an error : > /// > from django.shortcuts import render > from

Re: to contribute.

2017-09-24 Thread Dylan Reinhold
Read the contributing page https://docs.djangoproject.com/en/dev/internals/contributing/ then feel free to ask any question you have. Dlan On Sun, Sep 24, 2017 at 6:55 AM, Saurabh Kumar wrote: > hello sir! > i am a beginner. an i want to contribute to your organization. > please guide me. > > -

Re: Migrations don't create tables

2017-08-17 Thread Dylan Reinhold
Add the app name to the end of makemigrations. Seems like the first time an app is added you have the force makemigrations to find it. Dylan On Aug 17, 2017 11:58 AM, "matejrpls" wrote: > Hi, I have created a > 1. new app in django > 2. added the new app to t

Re: csrf_token during registration is giving me problems

2017-08-01 Thread Dylan Reinhold
You have a quoting miss-match in your enctype, that might be messing with the csrf_token I keep getting the following error: > > > Forbidden (403) >> >> CSRF verification failed. Request aborted. >> Help >> >> Reason given for failure: >> >> CSRF token missing or incorrect. >> >> >> In gene

Re: Django not serving static files with even after collectstatic

2017-07-02 Thread Dylan Reinhold
django does not (should not) serve your static files. You want your web server to serve up those files, so you dont have the overheard of url routing for files that don't need to run any python code to display. Dylan On Sun, Jul 2, 2017 at 4:25 PM, Dennis Gathagu wrote: > i'm ha

Re: ModuleNotFoundError: No module named 'models'

2017-05-29 Thread Dylan Reinhold
Well simple fix is make sure you have a module named models. Without the code no one is going to know what you did wrong. On Mon, May 29, 2017 at 4:42 PM, jinghui yang wrote: > ModuleNotFoundError: No module named 'models' > > How to fix this error? > > -- > You received this message because

Re: Django Channels error : (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.openchat.us/chat/stream/' failed: Error during WebSocket handshake: Unexp

2017-05-16 Thread Dylan Reinhold
Sorry sounds like you will need to configure somting in your webfaction controll panel. Here is another person with same issue, they said it fixed it for them. https://github.com/django/channels/issues/445 On Tue, May 16, 2017 at 5:46 PM, djangorobert wrote: > hi Dylan Im usingWebfaction

Re: Django Channels error : (index):173 Disconnected from chat socket websocketbridge.js:118 WebSocket connection to 'ws://www.openchat.us/chat/stream/' failed: Error during WebSocket handshake: Unexp

2017-05-16 Thread Dylan Reinhold
How are you running the web server? Looks like your web socket traffic is not being set to daphene. Probably hitting the regular django listener and its returning a 404. Dylan On Tue, May 16, 2017 at 3:39 PM, djangorobert wrote: > working on the Django channels example : multi chat on Git

Decorator help

2017-04-27 Thread Dylan Reinhold
turn actual_decorator(function) return actual_decorator But when I add that decorator to my view it lets me in when I'm not logged in, but once I change it back to @login_required it works as expected. Any ideas where to look, im at a loss. Dylan -- You received this message becau

Re: Migrations

2017-03-10 Thread Dylan Reinhold
. And others can learn from those issues and try and avoid them. Just my $0.02 Dylan On Fri, Mar 10, 2017 at 12:56 PM, Ed Sutherland wrote: > I certainly do. After a serious migration foul-up, I restarted the > project. I'm now hoping there won't be a repeat. I wish the

Re: Multiple Databases

2017-02-26 Thread Dylan Reinhold
It is going to use the database named default. Checkout the doc on using mutiple DBs https://docs.djangoproject.com/en/1.10/topics/db/multi-db/ Dylan On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh wrote: > Hi everyone, > > I am using 2 databases in my django app. One is default s

Re: Django Tutorial Part 2 - Model not showing up on Django Admin

2017-02-22 Thread Dylan Reinhold
Post your admin.py file and make sure that admin.py file is in your app folder. For #3, when you added your app and ran makemigrations it should have built a migration file for any of your models in model.py. On Wed, Feb 22, 2017 at 1:20 PM, t0mgs wrote: > Hi there, > > This is my first time i

Re: Newbie question, start server with hostname

2017-02-08 Thread Dylan Reinhold
You don't include the http:// python manage.py runserver hostname:8000 or put the IP address in the hostname area/ Dylan On Wed, Feb 8, 2017 at 12:29 PM, hippohippo wrote: > Dear all, > > I am a new comer on Django. I was able to to run start server by command > as below yest

Re: Possible bug in queryset "gte" function

2017-02-01 Thread Dylan Reinhold
After you changed it did you migrate the database? What database are you using? Dylan On Wed, Feb 1, 2017 at 9:05 AM, wrote: > What you say does sound plausible since previously the field was a > timestamp that I modified into a date, but then, what can I do? > > On Wednesday, Febr

Re: Possible bug in queryset "gte" function

2017-02-01 Thread Dylan Reinhold
Your date field is probably a date-time field in your database. So your filter is going to be looking for 2016-12-03 00:00:00 thru 2016-12-04 00:00:00. Dylan On Wed, Feb 1, 2017 at 6:16 AM, wrote: > Hi, guys. > > If I'm not madly blind (which has been the case before, you know)

Re: Context * 3

2016-12-16 Thread Dylan Reinhold
In your view you have state singular and in your template you are looping on states plural. Dylan On Fri, Dec 16, 2016 at 10:02 AM, Malik Rumi wrote: > Greetings, sports fans. > > There is an old saying, three strikes and you're out. They also say the > third time is the charm

Re: Django 1.8: Existing Migrations Files Erroring After FK Model Removed

2016-10-24 Thread dylan
. The RunPython does not import the model that has the FK. It uses the apps.get_model() method. I have also added the function called by RunPython below, in case that is of any use. Thanks, Dylan Traceback: Traceback (most recent call last): File "/home/dev/Programs/pycharm-2016.1.4/he

Django 1.8: Existing Migrations Files Erroring After FK Model Removed

2016-10-21 Thread dylan
y of doing this? Thanks for any help or advice. Dylan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post

Re: Custom Admin Command

2016-10-16 Thread Dylan Reinhold
Is your my_command file named my_command.py? how are you calling it `manage.py my_command`? Dylan On Sun, Oct 16, 2016 at 7:04 PM, Mario R. Osorio wrote: > > By the way, there are *__init__.py* files in both > my_project/my_app/management/ > and my_project/my_app/management/com

Re: Error with Tutorial - Writing your first Django app, part 1

2016-10-10 Thread Dylan Reinhold
In polls/url.py patterns is missing the N. Dylan On Mon, Oct 10, 2016 at 5:24 PM, Johnny McClung wrote: > Thank you. I've added the comma as you mentioned. Can't believe I missed > that. But now I am getting a new error. > > > > E:\Dropbox\Python Scripts\mysit

Re: Pip type error.

2014-03-27 Thread Dylan F.
Thanks Brian! The out-file command with ascii encoding specified fixed this for me. On Wednesday, September 26, 2012 1:55:31 AM UTC-4, Brian Peiris wrote: > > Thanks John, that was useful. > This happens because powershell outputs UTF-16 by default. Another way to > fix it is by using the out-

Re: ec2 using bitnami djangostack: application never loads; browser just hangs

2014-01-22 Thread Dylan Bumford
ack to endless waiting. How can I tell if the request is making it to modwsgi or it's stuck in apache? Dylan On Wednesday, January 22, 2014 12:26:13 PM UTC-5, Andréas Kühne wrote: > > 1. Have you checked all of the access logs and error logs when the app is > started? Is your reques

ec2 using bitnami djangostack: application never loads; browser just hangs

2014-01-22 Thread Dylan Bumford
I used the Bitnami Djangostack AMI to set up a Django environment with apache2 and mod_wsgi on a free instance provided by Amazon's EC2. The django app is installed at /opt/bitnami/apps/django/django_projects/mysite, alongside the default Project application that comes with the stack. The app r

Re: Django & Oracle connection problem

2013-05-15 Thread Dylan Klomparens
che is started it will set LD_LIBRARY_PATH specifically it. That way, LD_LIBRARY_PATH isn't set globally. All done! Hope this helps! On Wed, May 15, 2013 at 9:07 AM, Dylan Klomparens < dylan.klompar...@gmail.com> wrote: > This bug was filed as ticket 19720 ( > https://code.django

Re: Django & Oracle connection problem

2013-05-15 Thread Dylan Klomparens
believe there is something about the database is not set up right. -- Dylan On Wed, May 15, 2013 at 5:43 AM, Michael Van wrote: > I have the same error when python managment runserver : > cx_Oracle.DatabaseError: ORA-28547: connection to server failed, probable > Oracle Net admin error &

Re: Django & Oracle connection problem

2013-01-25 Thread Dylan Klomparens
ough this list has helped me a number of times. > > > On Thursday, January 24, 2013 5:27:22 PM UTC-5, Dylan Klomparens wrote: >> >> I have a Django program that is connecting to an Oracle database. In my >> settings.py file I have this configuration: >> >&

Django & Oracle connection problem

2013-01-24 Thread Dylan Klomparens
I have a Django program that is connecting to an Oracle database. In my settings.py file I have this configuration: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.oracle', 'NAME': 'xe', 'USER': 'MY_USER_NAME', 'PASSWORD': 'abcdefghijklmnopqrstuvwxyz', 'HOST': 'db

Re: Serving static files: Tried 3 ways with no luck

2012-12-27 Thread Dylan Tuominen
Yes make sure your STATICFILES_DIRS setting is pointing to the exact location you want to put them in, and then make sure all of the needed files are indeed being collected by manage.py collectstatic. after that, assuming your static_url is set to /static/, you should have no problems referenci

Re: Looking for IDE + FTP

2011-02-12 Thread Dylan McCurry
I personally use Coda and love it. Built in ftp, terminal, css editor, and code editor. On Feb 8, 3:30 pm, Karen McNeil wrote: > I have three Django sites that I've been working on recently and I've > been doing most of the development work in Dreamweaver.  I don't use > any of the wysiwyg featu

Re: How execute erlang code ?

2010-03-12 Thread Dylan Evans
web chat ( using ajax and long polling on client side ). > This is because I have chosen Erlang+Yaws+Mnesia. > Is it a wrong approach ? > > thanks. > > > On 12 Mar, 15:20, Dylan Evans wrote: > > That's difficult to say without specifics, but you should be able

Re: How execute erlang code ?

2010-03-12 Thread Dylan Evans
also implement RPC style calls between the servers using XMLRPC or something simpler. Is there a reason you want to use two different systems? On Fri, Mar 12, 2010 at 7:41 PM, nameless wrote: > you right Dylan... maybe is better put erlang code on another > webserver. > If I use iframe How

  1   2   >