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 business it g
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
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
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
Ill bite.
urlpatterns = [
path("pet//", views.PetDetailView.as_view(), name =
"pet_profile"),
path("owner//", views.PetOwnerDetailView.as_view(), name =
"owner_profile"),
path("pet/photoupload/", views.PetPhotoUploadView.as_view(), name =
"photo_upload"),
]
You if you are going to url
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,
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
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:
> This mig
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
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:
>
>
>
>
>
> What yo?
>
>
>
>
>
>
>
> Help please!
>
> --
> Yo
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
> }}
> {% endfor %}
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, Python 3.6.3).
It does not look like you have created an app yet in your project.
You should create one say web [ manage.py startapp web ]
Then move that views.py and the templates folder into that app folder web/
Then in your urls.py change the
from .views import index
to
from web.views import index.
In your
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
Your handle_404(request): needs to accept request, exception and template.
But if what you want this for is the current Year.
Just create a 404 template file in your template root named 404.html.
In the template use
{% now 'Y' %}
To get the current year.
The just let the default django 404 error
Andrew,
Not real sure on the fix, but the error seems more to be data related. Is
it just saying it's trying to add a record that exits?
For the MySQL issue, the foreign key is on the 'id' field in user, which is
not changing size, just the username field. So I don't think that is the
issue you a
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
wro
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-mixup
>
> In m
| 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, Jan 4
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
wrote:
> Which regular express
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
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/
>
> name 'render_to_response
Andrew,
You do not to get the field with _meta.get_field just use setattr which
takes a string as the field name.
Now if you are creating a new instance of your model and are just passing a
single field all other fields would need to have defaults or be null=True.
In your do stuff area you can
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 profile once they h
What you want to do is build a REST interface for this data load. Then you
give them a python script that is just pushing the data into your REST API.
Using the management commands requite most of of your project to be
installed on their side and even worse it would need a connection back to
the DB
This means your windows system has python files (.py) associated with
notepad not python.
It's okay, but anything you are going to run a python script like
django-admin.py or manage.py you need to run pythin first.
> python django-admin.py startproject myapp
> python manage.py
If you get an err
I would add an is_running flag into the context_data
def get_context_data(self, **kwargs):
data = super().get_context_data(**kwargs)
data['is_running'] = Submission.objects.filter(juser=self.request.user
jstatus='Running').exists()
return data
Then in your template {
What you are seeing is correct.
That congratulations page is only displayed by django when you have no
url's defined other than admin. Once you add your first URL django gets out
of the way and does not show that splash screen.
The error is saying you do no have anything defined in your URLs as /
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, August 24, 2016 at
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:
> I'd like to create a CBV
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:
> This
Your sample URL /navforward/DigitalOcean/*root*docker-bench-security/
Does not match anything in your urls
This one looks to be the closest:
url(r'^naviforward(?P[\w]+)/(?P[\*\w]+)/(?P[\w]+)/$','manager.views.navforward'),
In the url there is no / after navforward, and it going to be looking fo
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
First off nothing wrong with using your windows 10 box for development.
Now using sqllite for your test could lead to issues when you go to deploy.
I am guilty of doing to also some times.
But here is my deployment flow:
Develop on my laptop, check my changes into git
Push my changes to github o
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, 'Simon
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
> %}
>
>
> {% csrf_token %}
> {% for choic
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
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
wrot
You asked how to map admin to root. So yes it is correct then when you go
to the root if you are not loged in you will get he admin sign on.
If your goal was to map the polls application to root, then put the admin
back to the way it was
path('admin/', admin.site.urls),
And change polls to
path('
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
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\mysite>python manage.py runserver
> Perf
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/command folders ..
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. Let’s see which
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
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 *every*
> time ModelAdmin.c
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 it doesn
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), there
> is a b
uary 1, 2017 at 11:47:02 AM UTC-5, Dylan Reinhold wrote:
>>
>> 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
>>
>>
>> O
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 yesterday.
>
> python m
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
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 sqlite and se
Relative to where django started, with you doing all the schema changes on
your own. Migrations is AMAZING.
Now db schema control is one of the harder problems to solve. Migration is
not perfect, if you have ideas on how to make it better or know people who
do, I'm sure Andrew and the django team w
I need some views that the login_required is controlled via a setting, some
deployments of the code are open and some are closed (Different sites).
So I figured I could just write a quick decorator of my own and have it
check the setting before then calling login_required. After trouble with
that,
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 Github
>
to enter the commands to my webfaction account
>
> On Tuesday, May 16, 2017 at 5:49:04 PM UTC-5, Dylan Reinhold wrote:
>>
>> 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
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
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 having problems wi
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
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 to installed apps in settin
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.
>
> -
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 django.http imp
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 Google Groups
>
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,
>
> I wo
Tim you want to use get_context_data to add more data into your context for
the template
def get_context_data(self, **kwargs):
# Call the base implementation first to get a context
context = super().get_context_data(**kwargs)
# You your stuff
context['my_pk'] =
I had noticed this on a couple existing projects, but just figured I broke
something. But I see this in a couple new projects also.
When I log into admin from the first time after my browser is started, i
enter my user/password and the data is posted, but I never get a redirect
If i immediately jus
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
I was marking messages like his as spam in gmail, but I wonder if that
might imply i'm marking the mailing list as spammy (which this list is not
bad but getting worse).
I'm now using this for to directly report gmail violations, maybe google
will just suspend his account and others.
https://suppo
Inspectdb is the way to go.
Nothing is stopping you from just running sql queries though your DB python
package like mysql-connector.
You will loose much of the extras django provides with using the django-orm
like admin connections to your database.
Maybe flask would suit your use case better?
D
This really felt spammy. And I'm surprised it ended up on the djangoproject
page.
Why is the url shortened via the twitter link, then directes to a link on
https://ift.tt then finally to the django project?
What is that ifft.tt link some sort of tracking link to see who opens this
email?
Why not
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
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. This sol
I have the same thing on a few small sites I have. I had assumed it was
something I did.
I asked about it last month or so and did not get anyone saying they also
see it.
I had even built a new project at that time to test and saw the same thing.
As they are sites just for me, I just resorted to
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 hiring Full stack and Python De
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
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,
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:
> [image: ex.jpg]
>
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 browsable API but by the
> po
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 Mining, Web Development
78 matches
Mail list logo