have you checked your virtual env?
On Sun, 14 Apr 2024 at 5:38 AM, hikinthru wrote:
> I am a new Django user and am setting up my first site on a local MAMP
> server. Django is running, but when I run `python manage.py makemigrations`
> I get the following error:
>
>
It looks like you mistakenly alter your settings, check your INSTALLED_APPS
in settings.py
ModuleNotFoundError: No module named 'rest_frameworkdjango'
There should be a comma between rest_framework and django
On Wed, Mar 22, 2023, 12:18 PM Chandresh . T
wrote:
> Hello all! This is the setting
Try clearing cache and cookies for 127.0.0.1
On Fri, Nov 11, 2022, 8:36 AM Mike Dewhirst wrote:
> Try visiting http://localhost:8000 instead
>
> No guarantees and I'm not going to test it myself ;-)
>
>
>
>
>
> --
> (Unsigned mail from my phone)
>
>
>
> Original message
>
hi.. i dont want my delete button to redirect to a success url,how can i
do that
this is my code:
class ChatMessageDeleteView(LoginRequiredMixin, generic.DeleteView,
UserPassesTestMixin):
model = ChatMessage
# success_url = ''
def test_func(self):
message = self.get_object()
There are geoip databases you can download or use api services such as:
https://ipgeolocation.io/ to get the information.
On Thu, Dec 16, 2021, 09:08 Amor Zamora wrote:
> Can you help me?
> I need to obtain the country of where the users access from the IP and
> insert that information into
Check your models, you may have unique_together option enabled.
On Sat, Oct 9, 2021, 12:09 PM Sebastian Jung
wrote:
> Hello,
>
> No only friends get social media or WhatsApp.
>
> I think yoz need a experience developer. Try to get one developer on
> upwork. I have no expeeience with
Hello Ryan,
You are right. I sound as if I am only looking for tutorials.
Indeed, I am joining for specific Q's and A's.
Regards
On Wed, Mar 17, 2021 at 1:41 PM Mahmood wrote:
> Hi All,
>
> I am a new user to Django and am exploring it for Web development using
> Python. I am looking for
Hello dear,
add that app in settings.py in installed apps
Eg. "base.apps.BaseAppConfig"
Or simply
"base"
Kind regards Haris
On Tue, 1 Sep 2020, 3:59 AM Manal Helal, wrote:
> Hi
>
> I am using DJango to the first time and appreciate some explanation to the
> error I am receiving. I followed
Have you added whitenoise to the settings.py
On Mon, 24 Aug 2020, 9:27 PM Amresh Giri, wrote:
> Is is supposed to be "statics" ?
>
> On Mon, Aug 24, 2020, 9:49 PM alka reetesh
> wrote:
>
>> I have used python manage.py collectstatic, which gave
>> error--FileNotFoundError: [WinError 3] The
Sorry to interrupt you guys.
I am new in Django and I want to know about how to deploy django project.
Please help me.
Thanks in advance.
Thanks & Regards
Nasir ahmad
On Sat, Aug 15, 2020, 8:39 PM Karan Sahu wrote:
> Hi Mahamat,
> Could you please recheck the number once. I didn't
Watch tutorial of codewithharry on youtube that's a good tutorial for
ecommerce, or watch dennis ivy tutorials on youtube
On Fri, 14 Aug 2020, 11:50 PM sakshi jain, wrote:
> I'm also want some guidance for e_commerce website using django
>
> On Fri, Aug 14, 2020, 23:45 Haris Ahm
Hello everyone, Hope you're good!
I'm new to django, I have followed some tutorials regarding Ecommerce, know
I want to start working on eWallet project.
any kind of help will be appreciated,
if someone want to work with me on this project , here is the github link
to my account , HarisAhmad43
Hello everyone, I'm getting this error,
*Reverse for 'create_order' with no arguments not found. 1 pattern(s)
tried: ['create_order/(?P[^/]+)/$'] *
I'm getting this error when I use
*path('create_order//', views.createOrder, name="create_order"),*
but there is no such error when path is..
Hi there,
Resolved_path =pathlib.path.resolve(strict=True)
Use this, might work..
On Thu, 30 Jul 2020, 2:25 PM Mira, wrote:
> Hi All,
> I recently upgraded Django from 2.2 to 3 on my MacOS10.13.
> I am using Python 3.6 and My Application was working fine with Django 2.2
> but now i am getting
haris18...@gmail.com
On Fri, 24 Jul 2020, 2:34 AM Haris Ahmad, wrote:
> Intersted.
> Kind regards Haris Ahmad
>
> On Tue, 21 Jul 2020, 8:10 AM learn code, wrote:
>
>> Hi everyone,
>>
>> I am learning python and django, like to work on the projects to impr
Intersted.
On Fri, 24 Jul 2020, 2:31 AM _M_A_Y_A_N_K_,
wrote:
> Interested
>
> Thanks & Regards,
> -
> Mayank Tripathi
> Mo. +1 615 962 2128
> "Do what you can, with what you have, where you are -by Theodore
> Roosevelt"
>
>
>
> On Thu, Jul 23, 2020 at 3:49 PM Himanshi
i'm facing this problem and i can't fix it any body please help me or tell
me about this error
--
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
Hello Sir
I have trouble in learnig Testing tutorial of Djanog Documentation.
Can any one tell me what is the main concept of learnign test and how can
we learn it in easiest way.
I am waiting for reply
--
You received this message because you are subscribed to the Google Groups
"Django
Show me your model and view
On Tue, 17 Dec 2019, 20:11 MEGA NATHAN, wrote:
> Hi all.
>
> field error in live how to reslove
> below i have to attach the screensh please find out and let me.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users"
Show me your code.
On Tue, 17 Dec 2019, 14:36 vignesh s, wrote:
> django orm filter queryset is returning empty queryset and also checked in
> the db the data is available
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe
I'm struggling with this problem for 2 weeks please help me.
https://stackoverflow.com/questions/59269426/how-to-update-many-to-many-fields
regards.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
:05:24 AM UTC+6, Integr@te System
wrote:
>
> Hi friend,
>
> plz check these files: ' # Generated by Django 2.2.3 on 2019-11-26 15:36 '
> and another (if u have), to see separating.
>
> On Tue, Nov 26, 2019, 23:44 Ahmad Saki >
> wrote:
>
>> Hello Dear,
>>
;
> On Tue, Nov 26, 2019, 22:40 Ahmad Saki >
> wrote:
>
>> organization.Organization model:
>>
>> from django.db import models
>>
>> class Organization(models.Model):
>>orgid = models.IntegerField(max_length=6, primary_key=True)
>>
)),
],
),
]
On Tuesday, November 26, 2019 at 8:26:13 PM UTC+6, Integr@te System wrote:
>
> hi, inspect your typo and Organization model.
>
> On Tue, Nov 26, 2019, 16:31 Ahmad Saki >
> wrote:
>
>> Dear,
>> Thanks for your response.
>> I use the foreign key field 'orgid' or no
..orgid = org_obj '
>
>
>
>
> On Tue, Nov 26, 2019, 01:40 Ahmad Saki >
> wrote:
>
>> My custom authentication model in django:
>>
>> from django.db import models
>> from django.contrib.auth.models import (
>> AbstractBaseUser, BaseUserManager
&
My custom authentication model in django:
from django.db import models
from django.contrib.auth.models import (
AbstractBaseUser, BaseUserManager
)
from organization.models import Organization
class UserManager(BaseUserManager):
# use_in_migrations = True
# python manage.py createsuperuser
def
Waqas
Ahmad\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\exception.py"
in inner*
* 34. response = get_response(request)*
*File "C:\Users\Waqas
Ahmad\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py"
For Contact me ::: waqasahmadtarar...@gmail.com
--
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 view this
rely ever use the Windows boot, probably 3 times a year top,
> and every time I do I have a looot of updates to make.
>
> On Friday, March 22, 2019 at 8:28:54 AM UTC-4, Chafid Ahmad wrote:
>>
>> Hi, I have a client who wanted to run a Django project that can run in
>>
Hi, I have a client who wanted to run a Django project that can run in
Ubuntu. As I don't have a UX machine to developed it, is it possible to
developed the project in Windows, but later export it to Ubuntu? My initial
plan is:
- Developed the project with pycharm in windows
- Upload the project
Hi,
Migration for each app use cmd > python manage.py migrate, it migrate all
inbuilt app.
On Fri, Mar 8, 2019 at 2:27 AM cyril moreau wrote:
> To fix my issue I had to makemigrations for each one of my app :
>
> by doing the following it will create my user table :
>
> python manage.py
Thank you very much dear. It will help alot me.
On Monday, July 9, 2018 at 10:46:34 PM UTC+5, Ahmad wrote:
>
> Hello everyone, I hope all of you will be fine.
>
> I want a script to download facebook video (SD or HD) using python.
>
> if anyone has already please send me
>
Hello everyone, I hope all of you will be fine.
I want a script to download facebook video (SD or HD) using python.
if anyone has already please send me
or if you have any other material which can help me.
Waiting for you reply. Thanks
--
You received this message because you are
thanks a lot man.
url(r'^register$', views.register, name='register'), is not working now
On 7/8/18, Ahmad Hassan wrote:
> from django.contrib.auth.views import LoginView, LogoutView
>
>
>
>
> urlpatterns = [
>
>
>url(r'^login/$',
> LoginView.as_view(temp
from django.contrib.auth.views import LoginView, LogoutView
urlpatterns = [
url(r'^login/$',
LoginView.as_view(template_name='accounts/login.html')),
url(r'^logout/$',
LogoutView.as_view(template_name='accounts/logout.html')),
]
On 7/8/18, Hambali Idrees Ibrahim
hello everyone,
when i import this line it's not working.
from django.contrib.auth.views import login
My Django Versions is 2.0
from django.conf.urls import url
from . import views
from django.contrib.auth.views import login
urlpatterns = [
url(r'^$',views.home),
url(r'^login/$',
#VIEWS.PY
from django.db.models import Q
from django.shortcuts import render
from django.http import HttpResponse
from django.views.generic import TemplateView
from django.views.generic import ListView
from .models import ResturantLocation
# Create your views here.
def
Hello,
I need to build custom Django user roles, and i need an advice on the best
approach (or library that i can use) to achieve that:
1.
There will be 3 different user levels:
1.
Author
2.
Editor
3.
Verification
2.
in my program javascript dont read the data which is got from django but
the same page html tag the the data.
here is my code
var bubbleChartData = {
datasets: [ {
label: "Graph of Attacks",
backgroundColor:"#FF6384",
Just for reference:
i could get it to work by passing limit_choices_to to the "province" in
Project model.
class Project(models.Model):
project_name = models.CharField(max_length=100)
province = models.ForeignKey(Province, limit_choices_to={"country": 1})
--
You received this message
Thanks James.
But i think this solution will apply also on both models (WorkArea and
Project) right? while i want to get it to work only on the field province
of model *Project . *
On Tuesday, February 2, 2016 at 12:22:20 AM UTC+2, James Schneider wrote:
>
> The question: In the model Project
I have the following models in Django, and using smart-selects:
class Country(models.Model):
name = models.CharField(max_length=100)
class Province(models.Model):
name = models.CharField(max_length=100)
country = models.ForeignKey(Country)
class City(models.Model):
name =
Hi,
This is Ahsan. and i am brand fresh programmer in Django. Please guide the
easiest way to start learning Django.
Thank You
--
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,
Hello guys, i am working on a view where i m needed to pass an array of
objects into a ajax request.
the array of java script objects is like this
[{'que':1,'ans':3},{'que':1,'ans':2},{'que':4,'ans':5},{'que':2,'ans':4}]
i posted is
Hi every body,
I'd like to know how to explore the django framework source code like if you
are reading a book, like where to start, where to get a general overview of the
code organization, where to head next and so on until you become familiar with
all of the framework parts.
Thanks in
Guys, is it possible to call a javascript function in django templates
based on an if condition...?? What i want to do is that in
django templates if a given if condition is true i want to call a
javascript function automatically
tell me guys if it is possible or
can someoe give me some hints to attach multiple answers with a question
field
On Tue, Jan 29, 2013 at 10:17 AM, Sarfraz ahmad <sarfrazdja...@gmail.com>wrote:
> yes, i read the docs bt looking for an example which shows how can
> comments to be assigned to an object
>
>
>
> will help you to understand the documentation.
>
> Bill
>
> On Mon, Jan 28, 2013 at 11:55 AM, Sarfraz ahmad
> <sarfrazdja...@gmail.com>wrote:
>
>> How can i use django password reset method
>> unable to understand the django documentation about password r
ents/
>
> https://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/
>
> :)
>
>
> On Mon, Jan 28, 2013 at 11:13 AM, Sarfraz ahmad
> <sarfrazdja...@gmail.com>wrote:
>
>> good evening friends
>>
>> i m a new django user, i want to implement comment framework in
good evening friends
i m a new django user, i want to implement comment framework in my
app.. please help me and tell me that how can i use django comment
framework to assign comments with an object..
in my view i want to ask questions from users which can have multiple
How can i use django password reset method
unable to understand the django documentation about password reset.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To
updatable... whenever i tried to update the record with the form having
initial data as the record already inserted in the database this method
raise an exception while calling the is_valid() method
On Tue, Jan 22, 2013 at 7:39 PM, Sarfraz ahmad <sarfrazdja...@gmail.com>wrote:
> gusy i ha
cumentation for GenericForeignKey once more.
>>
>> Links:
>> 1.
>> https://docs.djangoproject.com/en/1.4/ref/contrib/contenttypes/#django.contrib.contenttypes.generic.GenericForeignKey
>>
>> --
>> Pankaj Singh
>> http://about.me/psjinx
>>
>>
>> On Wed, Jan 23, 2013 at 4:11
>
>
> On Wed, Jan 23, 2013 at 3:53 PM, Sarfraz ahmad <sarfrazdja...@gmail.com>
> wrote:
> > i have the same model having one foreignkey to User and second to the
> > ContentType
> >
> > class A11M1_user_itmes(models.Model):
> > A11M1F1_user=m
> http://about.me/psjinx
>
>
> On Wed, Jan 23, 2013 at 3:29 PM, Sarfraz ahmad <sarfrazdja...@gmail.com>
> wrote:
> > thanx buddy bt i wish to do it in a manner that a model which has a
> foreign
> > key to ContentType, when i make a query on this model i
ed_objects_with_model()
> >
> > get_all_related_objects() is the one I guess you may want to use in your
> case.
> >
> > Pankaj Singh
> > http://about.me/psjinx
> >
> >
> > On Wed, Jan 23, 2013 at 2:30 PM, Sarfraz ahmad <sarfrazdja...@gmail.com>
&
hello friends
i have a project with 7 applications installed in it and
i want to get all the objects related to a particular user from all the
applications of ma project. please tell me how can i get all these
objects using ContentType framework
thank you all
--
m ModelForm, then it's a matter of
>> configuring your model and form fields to allow null/blank. In this case,
>> seeing your code would help provide more direction.
>>
>> Hope this helps,
>> Jonathan
>>
>> On 01/21/2013 04:34 AM, Sarfraz ahmad wrote:
>>
n/dev/topics/forms/?from=olddocs
> https://docs.djangoproject.com/en/dev/ref/forms/validation/
>
> If you define the fields you want to with required=False, you shouldn't
> have issues
>
> Sent from my Windows Phone
> ------
> From: Sarfraz ahmad
&g
i want to update only a few fields of a form bt not with the cleaned method
i need to validate them in a view... please tell me a solution
thenk you all
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web
Hello everyone,
i m facing a problem while validating django form.
i have 5 form fields in a form and in the view i want to validate only
three form fields which i need to update .. tell me a solution if
anyone have any
--
You received this message
hi
I have a URL:
url(r'^airline/ticket/ajax/add$', airline_ticket_ajax_add,
> name='airline_ticket_ajax_add' ),
and when I try to reverse this URL I get:
Traceback:
>
> File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in
>> get_response
>
> 111.
Thanks Kurtis for sharing your account I have added you to my contacts :)
On Wed, Apr 25, 2012 at 5:56 PM, Kurtis wrote:
> Hey guys/girls,
>
> I want to share my Skype username in case anyone needs help in real-time.
> I am typically working when I'm online, so* please
ranslation/#module-django.views.i18n
>
>
> - Anssi
>
> On Apr 25, 12:40 am, Ahmad <mygoogli...@gmail.com> wrote:
> > I'm using django DateTimePicker widget -- AdminSplitDateTime() -- in
> event
> > creating app, every thing goes fine when the loged in u
I'm using django DateTimePicker widget -- AdminSplitDateTime() -- in event
creating app, every thing goes fine when the loged in user has superuser
permissions, but when normal user tries to access the creating form the
widget don't show up.
I don't know why it acts like this? and how to
f_exempt or
disabling the csrf entirely but nothing changed
If any one can figure out what I'm doing wrong please go ahead
thanks in advance
Ahmad
1.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this dis
edite this line in your settings.py or add it if not there
#Login redirects to
LOGIN_REDIRECT_URL = '/accounts/profile'
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To
I'm trying to insert date/time as I'm storing data retrieved from google
calendar api about event start and end date.
here is the RFC link RFC
That simple huh, don't know why I didn't try that... Thanks!
On Wed, 2008-07-16 at 14:03 -0500, Tim Chase wrote:
> > I have a list: data = ['apple', 'orange', 'banana']
> > in my template: {{ data }} will output: ['apple', orange, banana]
> > but {{ data[0] }} will throw an error
>
>
> {{
Hello everyone!
I have a list: data = ['apple', 'orange', 'banana']
in my template: {{ data }} will output: ['apple', orange, banana]
but {{ data[0] }} will throw an error
how can I print single entries at will in a template instead of the
whole list?
Thanks!
I have the same issue but with the cookie key name
I'm trying to set a cookie with name usercookie[username], but it
seems using square brackets in the cookie key name makes a problem
here, is there any work around for this problem?
>>> SimpleCookie('usercookie[username]=speedy; path=/;
Hello everyone,
I would like to know how to I would go about parsing an xml string in
Django. Is there a built in XML library or am I going to have to rely on
external parsers.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Send free email to dating members
http://www.datingseasons.com
Find your dream partner online free
http://www.datingseasons.com
Search and make your online partners
http://www.datingseasons.com
Find more details about your dream partner
http://www.datingseasons.com
Search your soulmate
Manipulator rip off). If it was at least possible to get the
node in the application specific URLconf then I could at least filter
the queryset by that node before passing it to the views. But none of
this is currently possible.
[EMAIL PROTECTED] wrote:
> Ahmad, do you perhaps mean something like
Todd O'Bryan wrote:
> A very straightforward way to do this would be to map the main url to
> a view-like function, build the queries you need, and then, based on
> the rest of the url, pass control to the actual view function you want.
Is there an easy and supported way of passing control back
Hello everyone,
My problem is like this. I have a main URLconf that will include
another, application specific, URLconf. In the application specific,
I'm preparing some querysets to pass to some generic views.
The problem is that the querysets I need to make in the application
URLconf depend on
Hi,
Is it possible to use the same application more than once in the same
project?
For example, if I download a ready made weblog application, can I use
it in one place as a general purpose weblog and in another place as a
seperate development weblog?
TIA.
--Ahmad
77 matches
Mail list logo