Re: Adding to all templates context via Middleware

2018-05-06 Thread Bernd Wechner
Daniel,

The backend code contains:

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, "templates"),],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},

How is including all that in settings.py not a breach of DRY? When all you 
want is to add a context processor to that list?

By the by, as there is no way to inject this into context I am convinced as 
performance stats are not fully collected until the whole response is 
rendered. To wit I have done it by inserting stats just before  tag 
as a safe and clean bet. 

The result is here: 

https://github.com/bernd-wechner/CoGs/blob/develop/django_stats_middleware/__init__.py

Works well for me and is a good hook for inserting any kind of stats really 
that can be collected in the middleware layer.

Regards,

Bernd.

On Thursday, 3 May 2018 19:55:14 UTC+10, Daniel Roseman wrote:
>
> On Thursday, 3 May 2018 01:36:26 UTC+1, Bernd Wechner wrote:
>>
>> This interests me:
>>
>> 
>> https://teamtreehouse.com/community/django-how-can-i-retrieve-a-value-from-the-middleware
>>
>> alas no answer there, and time has changed things.
>>
>> I have checked form experience, that stuff added to response.context_data 
>> in middleware is not seen in templates (perhaps comes too late!).
>>
>> Another pager here:
>>
>> https://mlvin.xyz/django-templates-context-processors.html
>>
>> describes how to add to context used context processors. Searching the 
>> web is nightmare in this space because of how Django has changed over time 
>> and the different methods in different versions.
>>
>> The problem I have with that sample above is he's replicating code by 
>> including in settings.py:
>>
>> TEMPLATES = [
>> {
>> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
>> 'DIRS': [os.path.join(BASE_DIR, "templates"),],
>> 'APP_DIRS': True,
>> 'OPTIONS': {
>> 'context_processors': [
>> 'django.template.context_processors.debug',
>> 'django.template.context_processors.request',
>> 'django.contrib.auth.context_processors.auth',
>> 'django.contrib.messages.context_processors.messages',
>> # our custom context processor
>> 'utils.context_processors.active_shows',
>> ],
>> },
>> },]
>>
>>
>> most of which is standard. Is there not a much more DRY way to add a 
>> context processor? Would this work?
>>
>> TEMPLATES = [
>> {
>> 'OPTIONS': {
>> 'context_processors': [
>> 'utils.context_processors.active_shows',
>> ],
>> },
>> },]
>>
>>
>> Probably not at a guess.  But is there a nicer way to do it?
>>
>> Another way might be to patch the response.content in the middleware but 
>> that too seems messy.
>>
>> Surely there's a nice way for middlware to take some timing stats around 
>> the:
>>
>> response = self.get_response(request)
>>
>> invocation that typically returns a response (and which I presume has 
>> already been through the whole template processing and has finalised 
>> response.content by the time it's done, so taking a timestamp after it's 
>> done is easy but making the result available in the templates via a context 
>> variable like {{execution_time}} would seem structurally impossible if 
>> context processing has already happened. 
>>
>> I can only imagine a trick using another context key like 
>> %%execution_time%% say and replacing that response.content.
>>
>> I wonder if I'm on the right track here? Or if someone has a better idea?
>>
>> Regards,
>>
>> Bernd.
>>
>>
>
> I don't understand what you mean about "repeating code" in settings.py. 
> There's no need to repeat anything; that TEMPLATES setting replaces what's 
> there already. You just need to edit the existing value and add that extra 
> context processor.
> --
> DR.
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1a7977fa-4022-4ebe-ad8f-cda88f49cfe6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Username same as user id

2018-05-06 Thread lakshitha kumara

Hello Jeni 

Thank you for your reply. yes i dealing with my own custom authentication 
backend and now i desided to use username as random number Instead of user 
id if username not set.

Thanks you

On Sunday, May 6, 2018 at 8:13:55 PM UTC+5:30, lakshitha kumara wrote:
>
> Hello guys 
>
> Is there way to assign username same as user id if username passing empty 
> value on registration form. is there way to do that.
>
> Thanks
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a5474895-5676-449f-834f-4d3ab30594dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Username same as user id

2018-05-06 Thread Jani Tiainen
Hi,

Have you considered using custom user with custom authentication backend to
handle authentication?

On Mon, May 7, 2018 at 3:56 AM, lakshitha kumara 
wrote:

> hi anthony
>
> Look at the facebook registration form. there are no username field first
> time user registration. but once user registered they can set username what
> they want.
>
> Thanks
>
> On Sunday, May 6, 2018 at 8:13:55 PM UTC+5:30, lakshitha kumara wrote:
>>
>> Hello guys
>>
>> Is there way to assign username same as user id if username passing empty
>> value on registration form. is there way to do that.
>>
>> Thanks
>>
> --
> 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 to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/e7eb07c0-6162-4c88-b5b4-8d1a5ee2d4b6%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91ofyJrq%3D3Tu%2B7aFiggA2mEdSgkHKdSN9HrEh%2BUqJtm_ubw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Upgrading from 1.11 to 2.0: "sqlite3.OperationalError: no such table"

2018-05-06 Thread Michael Gauland
Just in case anyone else runs into this, I fixed it by specifying 
db_contraint=False for foreign keys which cross databases.

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/aaca2372-f0f3-4e60-98cc-b7f906867606%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Username same as user id

2018-05-06 Thread lakshitha kumara
hi anthony 

Look at the facebook registration form. there are no username field first 
time user registration. but once user registered they can set username what 
they want. 

Thanks 

On Sunday, May 6, 2018 at 8:13:55 PM UTC+5:30, lakshitha kumara wrote:
>
> Hello guys 
>
> Is there way to assign username same as user id if username passing empty 
> value on registration form. is there way to do that.
>
> Thanks
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e7eb07c0-6162-4c88-b5b4-8d1a5ee2d4b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Fixtures: core.serializers.sort_dependencies sorts models in the wrong order for FK constraints

2018-05-06 Thread Mike Dewhirst

On 7/05/2018 4:48 AM, Andrew Wrigley wrote:
Hi Mike, thanks for the reply. My understanding is --natural-X only 
works if `natural_key`, `get_by_natural_key` are manually implemented 
on the models. I think the process should work without doing that, but 
I'm not sure why django orders the models in such a way that they 
can't be deserialised without violating FK constraints. Maybe this is 
a bug? I could --exclude thing, or manually control the serialisation 
order, but I'm hoping there is a more obvious solution I'm missing.


Just read the docs on natural keys and I have to say it is all news to 
me. None of my models have those methods. Just adding the --natural 
options solved my (admittedly early) problems. Also, I excluded as many 
models as possible except for those which contain reference data which 
are essential to drive the software. I handle a lot of jurisdictional 
differences. Excluding all the other models makes sense for me in a test 
situation because setUp() and tearDown() populate and remove data 
respectively. It means I get an empty test database except for my 
reference data.


Mike





On Sunday, May 6, 2018 at 7:30:31 AM UTC+2, Mike Dewhirst wrote:

On 5/05/2018 1:19 AM, Andrew Wrigley wrote:
>
> Hi all,
>
>
> I'm trying to dump a database fixture, and load it again to run
tests.
> When I run `python manage.py test`, I get:
>

You need to --exclude all models with data not used in any tests.
Considering that tests should be run with known data, if you excluded
all models you would be able to put test data in any/every model. You
probably don't want (in most cases) to fetch existing
relationships via
fixtures. An exception to this is unchanging reference data for
example
cities and postcodes or countries and currencies.

Here is how my dumpdata is configered for scripted creation of
fixtures ...

python manage.py dumpdata --settings=%proj%.settings.%production%
--indent=2 --verbosity=0 --natural-primary --natural-foreign --all
--exclude=contenttypes --exclude=auth.permission
--exclude=admin.logentry --exclude=sessions.session
--exclude=billing.fee --exclude=company.address
--exclude=company.company --exclude=company.companyprofile
--exclude=company.division --exclude=company.phone
--exclude=company.relationship
... etc ...
--exclude=workplace.workplace > %app1%/fixtures/initial_data.json

I think the term 'natural keys' includes the integers Django
'naturally'
uses. Hence, natural-primary and natural-foreign are just whatever
Django chooses. Those options mean you won't copy the existing
keys from
the dumped database.

>     IntegrityError: Problem installing fixtures: insert or
update on
>     table "publisher_journaldupextid" violates foreign key
constraint
>     "publisher_journaldup_journal_id_67a6a414_fk_publisher"
>     DETAIL:  Key (journal_id)=(153) is not present in table
>     "publisher_journal".
>

Your journal_id 153 isn't yet in the table and that means you are
using
existing keys instead of natural ones.

Not sure if this helps

> On further inspection this is because
> django.core.serializers.sort_dependencies, which I'm using to
create
> the fixture, is sorting models in the wrong order. Looking at the
> source of sort_dependencies, the only constraints on the
ordering of
> models relate to natural keys. I'm not using natural keys, but my
> database has foreign key constraints so order of loading is still
> important.
>
> Am I missing something about how to save and load models without
> violating FK constraints?
>
> --
> 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...@googlegroups.com 
> .
> To post to this group, send email to django...@googlegroups.com

> .
> Visit this group at https://groups.google.com/group/django-users
.
> To view this discussion on the web visit
>

https://groups.google.com/d/msgid/django-users/aa34a69f-e20c-4d4f-92a0-e44429e62c0c%40googlegroups.com



>

>.

> For more options, visit https://groups.google.com/d/optout
.

--
You r

Re: Fixtures: core.serializers.sort_dependencies sorts models in the wrong order for FK constraints

2018-05-06 Thread Andrew Wrigley
Hi Mike, thanks for the reply. My understanding is --natural-X only works 
if `natural_key`, `get_by_natural_key` are manually implemented on the 
models. I think the process should work without doing that, but I'm not 
sure why django orders the models in such a way that they can't be 
deserialised without violating FK constraints. Maybe this is a bug? I could 
--exclude thing, or manually control the serialisation order, but I'm 
hoping there is a more obvious solution I'm missing.


On Sunday, May 6, 2018 at 7:30:31 AM UTC+2, Mike Dewhirst wrote:
>
> On 5/05/2018 1:19 AM, Andrew Wrigley wrote: 
> > 
> > Hi all, 
> > 
> > 
> > I'm trying to dump a database fixture, and load it again to run tests. 
> > When I run `python manage.py test`, I get: 
> > 
>
> You need to --exclude all models with data not used in any tests. 
> Considering that tests should be run with known data, if you excluded 
> all models you would be able to put test data in any/every model. You 
> probably don't want (in most cases) to fetch existing relationships via 
> fixtures. An exception to this is unchanging reference data for example 
> cities and postcodes or countries and currencies. 
>
> Here is how my dumpdata is configered for scripted creation of fixtures 
> ... 
>
> python manage.py dumpdata --settings=%proj%.settings.%production% 
> --indent=2 --verbosity=0 --natural-primary --natural-foreign --all 
> --exclude=contenttypes --exclude=auth.permission 
> --exclude=admin.logentry --exclude=sessions.session 
> --exclude=billing.fee --exclude=company.address 
> --exclude=company.company --exclude=company.companyprofile 
> --exclude=company.division --exclude=company.phone 
> --exclude=company.relationship 
> ... etc ... 
> --exclude=workplace.workplace > %app1%/fixtures/initial_data.json 
>
> I think the term 'natural keys' includes the integers Django 'naturally' 
> uses. Hence, natural-primary and natural-foreign are just whatever 
> Django chooses. Those options mean you won't copy the existing keys from 
> the dumped database. 
>
> > IntegrityError: Problem installing fixtures: insert or update on 
> > table "publisher_journaldupextid" violates foreign key constraint 
> > "publisher_journaldup_journal_id_67a6a414_fk_publisher" 
> > DETAIL:  Key (journal_id)=(153) is not present in table 
> > "publisher_journal". 
> > 
>
> Your journal_id 153 isn't yet in the table and that means you are using 
> existing keys instead of natural ones. 
>
> Not sure if this helps 
>
> > On further inspection this is because 
> > django.core.serializers.sort_dependencies, which I'm using to create 
> > the fixture, is sorting models in the wrong order. Looking at the 
> > source of sort_dependencies, the only constraints on the ordering of 
> > models relate to natural keys. I'm not using natural keys, but my 
> > database has foreign key constraints so order of loading is still 
> > important. 
> > 
> > Am I missing something about how to save and load models without 
> > violating FK constraints? 
> > 
> > -- 
> > 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...@googlegroups.com  
> > . 
> > To post to this group, send email to django...@googlegroups.com 
>  
> > . 
> > Visit this group at https://groups.google.com/group/django-users. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/aa34a69f-e20c-4d4f-92a0-e44429e62c0c%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/django-users/aa34a69f-e20c-4d4f-92a0-e44429e62c0c%40googlegroups.com?utm_medium=email&utm_source=footer>.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/594e96a6-76cf-4448-99c8-8bf46503aa7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Username same as user id

2018-05-06 Thread 'Anthony Flury' via Django users

I can't imagine having an application where username is optional ...

On 06/05/18 17:48, lakshitha kumara wrote:

hi anthony

Thank you for reply on this site username field not required field for 
user  but its set as required field on backend so i need assing user 
id as as username if username is empty for on registration submit.

user can login with email phone and username

Thanks


On Sunday, May 6, 2018 at 8:13:55 PM UTC+5:30, lakshitha kumara wrote:

Hello guys

Is there way to assign username same as user id if username
passing empty value on registration form. is there way to do that.

Thanks

--
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 to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ed1f8b3c-301e-400c-b493-a55f49f2cdc5%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.



--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury *

--
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/97139e2f-b293-141d-bbf6-a52a15ed084b%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.


Re: While going through django tutorial i found some errors when i tried to execute the python manage.py runserver.The error is attached below:

2018-05-06 Thread 'Anthony Flury' via Django users

It is ForeignKey (capital K).

In your files you sent you missed the one file it was actually 
complaining about :




On 06/05/18 18:09, Avitab Ayan Sarmah wrote:

index.html:

{% if latest_question_list %}
  
  {% for question in latest_question_list %}
    {{
question.question_text }}
  {% endfor %}
  
{% else %}
  No polls are available.
{% endif %}

admin.py:


from django.contrib import admin

from . models import Question

admin.site.register(Question)

views.py:

from django.shortcuts import get_object_or_404, render

from . models import Question

def index(request):
latest_question_list = Question.objects.order_by('-pub_date')[:5]
context = {'latest_question_list': latest_question_list}
return render(request, 'polls/index.html', context)

def detail(request, question_id):
question = get_object_or_404(Question, pk=question_id)

def results(request, question_id):
response = "You're looking at the results of question %s."
return HttpResponse(response % question_id)

def vote(request, question_id):
return HttpResponse("You're voting on question %s." % question_id)

detail.html:

{{ question.question_text }}

{% for choice in question.choice_set.all %}
  {{ choice.choice_text }}
{% endfor %}


mysite/polls/urls.py:

from django.urls import path

from . import views

urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('/', views.detail, name='detail'),
#ex: /polls/5/results/
path('/results/', views.results, name='results'),
#ex: /polls/5/vote/
path('int:question_id>/vote/', views.vote, name='vote'),
]

mysite/urls.py:

from django.contrib import admin
from django.urls import include, path

urlpatterns = [
path('', include('polls.urls')),
path('admin/', admin.site.urls),
]

Please check the above codes and comment where i've gone wrong
--
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 to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/12b0418f-7979-4d07-b827-68b0c227%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.



--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury *

--
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/420f69c9-717a-a9c5-9196-3165418c25d0%40btinternet.com.
For more options, visit https://groups.google.com/d/optout.


While going through django tutorial i found some errors when i tried to execute the python manage.py runserver.The error is attached below:

2018-05-06 Thread Avitab Ayan Sarmah
index.html:

{% if latest_question_list %}
  
  {% for question in latest_question_list %}
{{
question.question_text }}
  {% endfor %}
  
{% else %}
  No polls are available.
{% endif %}

admin.py:


from django.contrib import admin

from . models import Question

admin.site.register(Question)

views.py:

from django.shortcuts import get_object_or_404, render

from . models import Question

def index(request):
latest_question_list = Question.objects.order_by('-pub_date')[:5]
context = {'latest_question_list': latest_question_list}
return render(request, 'polls/index.html', context)

def detail(request, question_id):
question = get_object_or_404(Question, pk=question_id)

def results(request, question_id):
response = "You're looking at the results of question %s."
return HttpResponse(response % question_id)

def vote(request, question_id):
return HttpResponse("You're voting on question %s." % question_id)

detail.html:

{{ question.question_text }}

{% for choice in question.choice_set.all %}
  {{ choice.choice_text }}
{% endfor %}


mysite/polls/urls.py:

from django.urls import path

from . import views

urlpatterns = [
# ex: /polls/
path('', views.index, name='index'),
# ex: /polls/5/
path('/', views.detail, name='detail'),
#ex: /polls/5/results/
path('/results/', views.results, name='results'),
#ex: /polls/5/vote/
path('int:question_id>/vote/', views.vote, name='vote'),
]

mysite/urls.py:

from django.contrib import admin
from django.urls import include, path

urlpatterns = [
path('', include('polls.urls')),
path('admin/', admin.site.urls),
]

Please check the above codes and comment where i've gone wrong

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/12b0418f-7979-4d07-b827-68b0c227%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Username same as user id

2018-05-06 Thread lakshitha kumara
hi anthony 

Thank you for reply on this site username field not required field for 
user  but its set as required field on backend so i need assing user id as 
as username if username is empty for on registration submit. 
user can login with email phone and username 

Thanks 


On Sunday, May 6, 2018 at 8:13:55 PM UTC+5:30, lakshitha kumara wrote:
>
> Hello guys 
>
> Is there way to assign username same as user id if username passing empty 
> value on registration form. is there way to do that.
>
> Thanks
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ed1f8b3c-301e-400c-b493-a55f49f2cdc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[no subject]

2018-05-06 Thread Aayush Khandelwal
Having error import name patterns ,I even downloaded it but still getting
error what to do to sort it out

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACVE4Jk%3DN%3DObdHLxt2Vj6avkywL-QxRya%2BC0Bo6CHS3jTE6MiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: unexpected JSONField behavior clarification - key value pairs initially loaded integers, then saved down as strings into the database

2018-05-06 Thread Peter of the Norse
This is actually part of the JSON specification 
.  All of the keys must be 
strings.  If you put in an int or float, it will automatically convert it, but 
that is something you have to watch out for since it can lead to data loss.

>>> import json
>>> test = {4: 5, '4': 'a'}
>>> json.loads(json.dumps(test))
{'4': 5} 

> On Apr 24, 2018, at 6:06 PM, Oliver Zhou  wrote:
> 
> Using Django 1.11, Python 2.7, PostGres, and JSONField I'm getting behavior I 
> don't expect.
> 
> It seems when JSONField values are initially saved/accessed in memory, 
> they're python "integers", but when saved to the database and then 
> re-accessed, the values are now in string format.
> 
> What about how Django handles JSONField string vs integers am I missing here? 
> Whats the best way to get deterministic behavior here? 
> Am I supposed to always, say, use json.dumps to work with this stuff in 
> string format? Should I be converting all JSONField values before trying to 
> access any values?
> 
> Example 1 - Basic Problem
> 
> Example Model :
> class ExampleModel(models.Model): 
> external_ids = JSONField(blank=True, null=True, default=dict)
> 
> My code:
> new_example = ExampleModel.objects.create()
> new_example.external_ids[1234] = {}
> print(new_example.external_ids)
> 
> Output looks like this : 
> {1234: {}}
> 
> 
> I can now access values stored like this :
> In [140]: new_example.external_ids[1234]
> Out[140]: {}
> 
> I will now then save the object to the database
> new_example.save()
> 
> However, when I go back and try to access the fields again, all integer 
> values in the JSON have been converted into strings, and I cannot access them 
> anymore without getting a KeyError
> reload_example = ExampleModel.objects.get(id=1) 
> reload_example.external_ids[1234] 
> In [144]: reload_example.external_ids[1234]
> ---
> KeyError  Traceback (most recent call last)
>  in ()
> > 1 reload_example.external_ids[1234]
> KeyError: 1234
> 
> 
> By this time, the integer 1234 has been converted into a string that looks 
> like something like the following :  Why is this?
> In [147]: print(reload_example.external_ids)
> Out[147]: {u'1234': {}}
> 
> Therefore, at this time, I have to do this to access the fields : Whats the 
> correct way to handle this?
> In [160]: c2.external_ids[str(1234)]
> Out[160]: {}
> 
> Example 2 - Non-deterministic Merge Problem - 
> In fact, this creates some other interesting problems for me too, where 
> integer keys and string keys get merged together in uncertain order as well.
> 
> I create a new model - and save some key value pairs down into the JSONField:
> In [164]: example2 = ExampleModel.objects.create()
> In [165]: example2.external_ids
> Out[165]: {}
> In [166]: example2.external_ids[1234] = {'567': '890'}
> In [167]: example2.save()
> In [169]: example2.external_ids
> Out[169]: {1234: {'567': '890'}}
> 
> Then I try to reload the model back into memory :
> 
> In [170]: reload_example2 = ExampleModel.objects.get(id=2)
> In [171]: reload_example2.external_ids
> Out[171]: {u'1234': {u'567': u'890'}}
> 
> Then I try to save a new set of values for key 1234:
> 
> In [172]: reload_example2.external_ids[1234] = {'890': '567'}
> In [173]: reload_example2.external_ids
> Out[173]: {1234: {'890': '567'}, u'1234': {u'567': u'890'}}
> 
> Now it seems like both key value pairs are loaded into memory - just the 
> older one is tracked by a string-ified key, and the new values are tracked by 
> an integer-based key
> In [174]: reload_example2.save()
> 
> Then I save and reload the model again - it seems uncertain which values 
> actually got saved down - whats the expectation here?
> In [175]: reload_example3 = ExampleModel.objects.get(id=2)
> In [176]: reload_example3.external_ids
> Out[176]: {u'1234': {u'890': u'567'}}
> 
> 
> Thanks!
> Oliver
> 
> -- 
> 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 to this group, send email to django-users@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-users 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/ae8000bd-e7cb-44a3-9eb6-2c5a3926861e%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

Peter of the Norse
rahmc...@radio1190.org



-- 
You received this message because you are subscrib

Username same as user id

2018-05-06 Thread lakshitha kumara
Hello guys 

Is there way to assign username same as user id if username passing empty 
value on registration form. is there way to do that.

Thanks

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3b811612-a833-458a-bf37-801f09a1d998%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: what best for ecommerce project

2018-05-06 Thread Aditya Singh
Sorry mate that I created for one of clients and according to the agreement
I cannot share the code and resources related to the project.
Kind Regards,
Aditya

On Sun, May 6, 2018, 8:07 PM Ruhia gr  wrote:

> yes please adithya share your ecommerce project here
>
> On Sun, May 6, 2018 at 12:53 PM, Digital Prasar 
> wrote:
>
>> Hi Aditya
>>
>> Thanks for your contributions on forum . Can you share link of your e
>> commerce project made on django.
>>
>> On Sun, May 6, 2018, 12:26 PM Aditya Singh 
>> wrote:
>>
>>> Hi mate,
>>> I have myself built a full stack ecommerce store using django and you
>>> need nothing more than django because it is most powerful standalone.
>>> Infact Django cms is built on top of that
>>>
>>> On Sun, May 6, 2018, 12:17 PM Jani Tiainen  wrote:
>>>
 Hi,

 Installation and compatibility of what?

 I don't really do ecommerce so I don't have a clue which is "good". I
 once tested django-oscar for personal purposes and it worked just fine with
 minimal configuration.

 What I understood about django-shop it's more like framework you build
 your site on top of that and it doesn't do everything out of the box.



 On Sun, May 6, 2018 at 9:42 AM, Ruhia gr  wrote:

> how about the installation and compatibility also i heard about django
> shop what about this
>
> On Sun, May 6, 2018 at 12:05 PM, Jani Tiainen 
> wrote:
>
>> Hi,
>>
>> Don't know about django cms but in theory it should be.
>>
>> There also exists Django-oscar which is relatively popular premade
>> ecommerce platform built on top of django.
>>
>> On Sun, May 6, 2018 at 9:31 AM, Ruhia gr  wrote:
>>
>>> wether its possible to built ecommerce project using django cms?
>>>
>>> On Sun, May 6, 2018 at 11:52 AM, Aditya Singh <
>>> adityasingh222...@gmail.com> wrote:
>>>
 Django is best mate. That way you are not limited by the features
 provided by django-cms.

 On Sun, May 6, 2018, 11:33 AM Ruhia gr  wrote:

> hello can anyone help me with this since am new to django
>
> On Sat, May 5, 2018 at 10:50 PM, Ruhia gr 
> wrote:
>
>> hello everyone m new to django and am starting my ecommerce
>> project in djnago .please anyone suggest which is best for ecommerce
>> project(online shopping)django or django cms
>>
>
> --
> 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 to this group, send email to django-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAG5%3DJHe%3D4a_qU1T9A%2BOa01ACd4vMgmiajgXg3qD0yaCGEDWSOg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 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 to this group, send email to django-users@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAEPfumiiGQtW2Oa4m5hwQf95qKvUswT3U%2BJnancgVbEbeCah6w%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> --
>>> 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 to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAG5%3DJHf%3D74C8RkK%2BSR5stCqaSb2220P3-_LwXOtKw_E0Bq%3D7cg%40mail.gmail.com
>>> 
>>>

Re: what best for ecommerce project

2018-05-06 Thread Ruhia gr
yes please adithya share your ecommerce project here

On Sun, May 6, 2018 at 12:53 PM, Digital Prasar 
wrote:

> Hi Aditya
>
> Thanks for your contributions on forum . Can you share link of your e
> commerce project made on django.
>
> On Sun, May 6, 2018, 12:26 PM Aditya Singh 
> wrote:
>
>> Hi mate,
>> I have myself built a full stack ecommerce store using django and you
>> need nothing more than django because it is most powerful standalone.
>> Infact Django cms is built on top of that
>>
>> On Sun, May 6, 2018, 12:17 PM Jani Tiainen  wrote:
>>
>>> Hi,
>>>
>>> Installation and compatibility of what?
>>>
>>> I don't really do ecommerce so I don't have a clue which is "good". I
>>> once tested django-oscar for personal purposes and it worked just fine with
>>> minimal configuration.
>>>
>>> What I understood about django-shop it's more like framework you build
>>> your site on top of that and it doesn't do everything out of the box.
>>>
>>>
>>>
>>> On Sun, May 6, 2018 at 9:42 AM, Ruhia gr  wrote:
>>>
 how about the installation and compatibility also i heard about django
 shop what about this

 On Sun, May 6, 2018 at 12:05 PM, Jani Tiainen 
 wrote:

> Hi,
>
> Don't know about django cms but in theory it should be.
>
> There also exists Django-oscar which is relatively popular premade
> ecommerce platform built on top of django.
>
> On Sun, May 6, 2018 at 9:31 AM, Ruhia gr  wrote:
>
>> wether its possible to built ecommerce project using django cms?
>>
>> On Sun, May 6, 2018 at 11:52 AM, Aditya Singh <
>> adityasingh222...@gmail.com> wrote:
>>
>>> Django is best mate. That way you are not limited by the features
>>> provided by django-cms.
>>>
>>> On Sun, May 6, 2018, 11:33 AM Ruhia gr  wrote:
>>>
 hello can anyone help me with this since am new to django

 On Sat, May 5, 2018 at 10:50 PM, Ruhia gr 
 wrote:

> hello everyone m new to django and am starting my ecommerce
> project in djnago .please anyone suggest which is best for ecommerce
> project(online shopping)django or django cms
>

 --
 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 to this group, send email to django-users@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAG5%3DJHe%
 3D4a_qU1T9A%2BOa01ACd4vMgmiajgXg3qD0yaCGEDWSOg%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> 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 to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/
>>> CAEPfumiiGQtW2Oa4m5hwQf95qKvUswT3U%2BJnancgVbEbeCah6w%
>>> 40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> 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 to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CAG5%3DJHf%3D74C8RkK%2BSR5stCqaSb2220P3-_
>> LwXOtKw_E0Bq%3D7cg%40mail.gmail.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jani Tiainen
>
> - Well planned is half done, and a half done has been sufficient
> before...
>
> --
> You received this message because you are subscr

Re: what best for ecommerce project

2018-05-06 Thread Digital Prasar
Hi Aditya

Thanks for your contributions on forum . Can you share link of your e
commerce project made on django.

On Sun, May 6, 2018, 12:26 PM Aditya Singh 
wrote:

> Hi mate,
> I have myself built a full stack ecommerce store using django and you need
> nothing more than django because it is most powerful standalone. Infact
> Django cms is built on top of that
>
> On Sun, May 6, 2018, 12:17 PM Jani Tiainen  wrote:
>
>> Hi,
>>
>> Installation and compatibility of what?
>>
>> I don't really do ecommerce so I don't have a clue which is "good". I
>> once tested django-oscar for personal purposes and it worked just fine with
>> minimal configuration.
>>
>> What I understood about django-shop it's more like framework you build
>> your site on top of that and it doesn't do everything out of the box.
>>
>>
>>
>> On Sun, May 6, 2018 at 9:42 AM, Ruhia gr  wrote:
>>
>>> how about the installation and compatibility also i heard about django
>>> shop what about this
>>>
>>> On Sun, May 6, 2018 at 12:05 PM, Jani Tiainen  wrote:
>>>
 Hi,

 Don't know about django cms but in theory it should be.

 There also exists Django-oscar which is relatively popular premade
 ecommerce platform built on top of django.

 On Sun, May 6, 2018 at 9:31 AM, Ruhia gr  wrote:

> wether its possible to built ecommerce project using django cms?
>
> On Sun, May 6, 2018 at 11:52 AM, Aditya Singh <
> adityasingh222...@gmail.com> wrote:
>
>> Django is best mate. That way you are not limited by the features
>> provided by django-cms.
>>
>> On Sun, May 6, 2018, 11:33 AM Ruhia gr  wrote:
>>
>>> hello can anyone help me with this since am new to django
>>>
>>> On Sat, May 5, 2018 at 10:50 PM, Ruhia gr 
>>> wrote:
>>>
 hello everyone m new to django and am starting my ecommerce project
 in djnago .please anyone suggest which is best for ecommerce 
 project(online
 shopping)django or django cms

>>>
>>> --
>>> 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 to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAG5%3DJHe%3D4a_qU1T9A%2BOa01ACd4vMgmiajgXg3qD0yaCGEDWSOg%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAEPfumiiGQtW2Oa4m5hwQf95qKvUswT3U%2BJnancgVbEbeCah6w%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAG5%3DJHf%3D74C8RkK%2BSR5stCqaSb2220P3-_LwXOtKw_E0Bq%3D7cg%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



 --
 Jani Tiainen

 - Well planned is half done, and a half done has been sufficient
 before...

 --
 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 to this group, send email to django-users@googlegroups.com.
>>

Re: django makemigrations not working

2018-05-06 Thread Bernard Letourmy
Hello,
If you've got "No changes detected" on makemigrations, it means it did it 
job already (in previous run probably)
can you list and post the content of you migrations folders ?

then if you have errors on makemigrations it would help helping you if you 
would  post the actual error logs.
Those errors can be related to something else, like an issue with you 
configuration or  python environment.
Any conf. changes / pip install before you start having issues with you 
migrations ?

Also what was the reason for you to recreate your migrations files ?
How did you do before that / were your migrations ok ?

/Bernard



On Saturday, 5 May 2018 15:23:47 UTC+2, Gerald Brown wrote:
>
> Yes. I dropped it and then recreated it. 
>
> Then ran "makemigrations" & "migrate". Migrate is now giving me a lot of 
> errors. 
>
> Funny that all of the errors that show up are in lines that contain 
> "**/site-packages/django/**", NOT in any lines of MY code. 
>
>
> On Saturday, 05 May, 2018 09:17 PM, Hervé Edorh wrote: 
> > Do you create another database? 
> > 
>
>

-- 
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 to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/62162729-8c76-4f66-80ef-d001f8e4011e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: what best for ecommerce project

2018-05-06 Thread Ruhia gr
thank you so much for all of your support

On Sun, May 6, 2018 at 12:42 PM, Aditya Singh 
wrote:

> Exactly mate!
>
> On Sun, May 6, 2018, 12:39 PM Ruhia gr  wrote:
>
>> cool so you all are prefer me using django for ecommerce right
>>
>> On Sun, May 6, 2018 at 12:26 PM, Aditya Singh <
>> adityasingh222...@gmail.com> wrote:
>>
>>> Hi mate,
>>> I have myself built a full stack ecommerce store using django and you
>>> need nothing more than django because it is most powerful standalone.
>>> Infact Django cms is built on top of that
>>>
>>> On Sun, May 6, 2018, 12:17 PM Jani Tiainen  wrote:
>>>
 Hi,

 Installation and compatibility of what?

 I don't really do ecommerce so I don't have a clue which is "good". I
 once tested django-oscar for personal purposes and it worked just fine with
 minimal configuration.

 What I understood about django-shop it's more like framework you build
 your site on top of that and it doesn't do everything out of the box.



 On Sun, May 6, 2018 at 9:42 AM, Ruhia gr  wrote:

> how about the installation and compatibility also i heard about django
> shop what about this
>
> On Sun, May 6, 2018 at 12:05 PM, Jani Tiainen 
> wrote:
>
>> Hi,
>>
>> Don't know about django cms but in theory it should be.
>>
>> There also exists Django-oscar which is relatively popular premade
>> ecommerce platform built on top of django.
>>
>> On Sun, May 6, 2018 at 9:31 AM, Ruhia gr  wrote:
>>
>>> wether its possible to built ecommerce project using django cms?
>>>
>>> On Sun, May 6, 2018 at 11:52 AM, Aditya Singh <
>>> adityasingh222...@gmail.com> wrote:
>>>
 Django is best mate. That way you are not limited by the features
 provided by django-cms.

 On Sun, May 6, 2018, 11:33 AM Ruhia gr  wrote:

> hello can anyone help me with this since am new to django
>
> On Sat, May 5, 2018 at 10:50 PM, Ruhia gr 
> wrote:
>
>> hello everyone m new to django and am starting my ecommerce
>> project in djnago .please anyone suggest which is best for ecommerce
>> project(online shopping)django or django cms
>>
>
> --
> 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 to this group, send email to django-users@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAG5%3DJHe%
> 3D4a_qU1T9A%2BOa01ACd4vMgmiajgXg3qD0yaCGEDWSOg%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 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 to this group, send email to django-users@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/
 CAEPfumiiGQtW2Oa4m5hwQf95qKvUswT3U%2BJnancgVbEbeCah6w%
 40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> --
>>> 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 to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAG5%3DJHf%
>>> 3D74C8RkK%2BSR5stCqaSb2220P3-_LwXOtKw_E0Bq%3D7cg%40mail.gmail.com
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jani Tiainen
>>

Re: what best for ecommerce project

2018-05-06 Thread Aditya Singh
Exactly mate!

On Sun, May 6, 2018, 12:39 PM Ruhia gr  wrote:

> cool so you all are prefer me using django for ecommerce right
>
> On Sun, May 6, 2018 at 12:26 PM, Aditya Singh  > wrote:
>
>> Hi mate,
>> I have myself built a full stack ecommerce store using django and you
>> need nothing more than django because it is most powerful standalone.
>> Infact Django cms is built on top of that
>>
>> On Sun, May 6, 2018, 12:17 PM Jani Tiainen  wrote:
>>
>>> Hi,
>>>
>>> Installation and compatibility of what?
>>>
>>> I don't really do ecommerce so I don't have a clue which is "good". I
>>> once tested django-oscar for personal purposes and it worked just fine with
>>> minimal configuration.
>>>
>>> What I understood about django-shop it's more like framework you build
>>> your site on top of that and it doesn't do everything out of the box.
>>>
>>>
>>>
>>> On Sun, May 6, 2018 at 9:42 AM, Ruhia gr  wrote:
>>>
 how about the installation and compatibility also i heard about django
 shop what about this

 On Sun, May 6, 2018 at 12:05 PM, Jani Tiainen 
 wrote:

> Hi,
>
> Don't know about django cms but in theory it should be.
>
> There also exists Django-oscar which is relatively popular premade
> ecommerce platform built on top of django.
>
> On Sun, May 6, 2018 at 9:31 AM, Ruhia gr  wrote:
>
>> wether its possible to built ecommerce project using django cms?
>>
>> On Sun, May 6, 2018 at 11:52 AM, Aditya Singh <
>> adityasingh222...@gmail.com> wrote:
>>
>>> Django is best mate. That way you are not limited by the features
>>> provided by django-cms.
>>>
>>> On Sun, May 6, 2018, 11:33 AM Ruhia gr  wrote:
>>>
 hello can anyone help me with this since am new to django

 On Sat, May 5, 2018 at 10:50 PM, Ruhia gr 
 wrote:

> hello everyone m new to django and am starting my ecommerce
> project in djnago .please anyone suggest which is best for ecommerce
> project(online shopping)django or django cms
>

 --
 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 to this group, send email to django-users@googlegroups.com.
 Visit this group at https://groups.google.com/group/django-users.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAG5%3DJHe%3D4a_qU1T9A%2BOa01ACd4vMgmiajgXg3qD0yaCGEDWSOg%40mail.gmail.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> 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 to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAEPfumiiGQtW2Oa4m5hwQf95qKvUswT3U%2BJnancgVbEbeCah6w%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> 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 to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAG5%3DJHf%3D74C8RkK%2BSR5stCqaSb2220P3-_LwXOtKw_E0Bq%3D7cg%40mail.gmail.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Jani Tiainen
>
> - Well planned is half done, and a half done has been sufficient
> before...
>
> --
> 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
> a

Re: what best for ecommerce project

2018-05-06 Thread Ruhia gr
cool so you all are prefer me using django for ecommerce right

On Sun, May 6, 2018 at 12:26 PM, Aditya Singh 
wrote:

> Hi mate,
> I have myself built a full stack ecommerce store using django and you need
> nothing more than django because it is most powerful standalone. Infact
> Django cms is built on top of that
>
> On Sun, May 6, 2018, 12:17 PM Jani Tiainen  wrote:
>
>> Hi,
>>
>> Installation and compatibility of what?
>>
>> I don't really do ecommerce so I don't have a clue which is "good". I
>> once tested django-oscar for personal purposes and it worked just fine with
>> minimal configuration.
>>
>> What I understood about django-shop it's more like framework you build
>> your site on top of that and it doesn't do everything out of the box.
>>
>>
>>
>> On Sun, May 6, 2018 at 9:42 AM, Ruhia gr  wrote:
>>
>>> how about the installation and compatibility also i heard about django
>>> shop what about this
>>>
>>> On Sun, May 6, 2018 at 12:05 PM, Jani Tiainen  wrote:
>>>
 Hi,

 Don't know about django cms but in theory it should be.

 There also exists Django-oscar which is relatively popular premade
 ecommerce platform built on top of django.

 On Sun, May 6, 2018 at 9:31 AM, Ruhia gr  wrote:

> wether its possible to built ecommerce project using django cms?
>
> On Sun, May 6, 2018 at 11:52 AM, Aditya Singh <
> adityasingh222...@gmail.com> wrote:
>
>> Django is best mate. That way you are not limited by the features
>> provided by django-cms.
>>
>> On Sun, May 6, 2018, 11:33 AM Ruhia gr  wrote:
>>
>>> hello can anyone help me with this since am new to django
>>>
>>> On Sat, May 5, 2018 at 10:50 PM, Ruhia gr 
>>> wrote:
>>>
 hello everyone m new to django and am starting my ecommerce project
 in djnago .please anyone suggest which is best for ecommerce 
 project(online
 shopping)django or django cms

>>>
>>> --
>>> 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 to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAG5%3DJHe%
>>> 3D4a_qU1T9A%2BOa01ACd4vMgmiajgXg3qD0yaCGEDWSOg%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/CAEPfumiiGQtW2Oa4m5hwQf95qKvUs
>> wT3U%2BJnancgVbEbeCah6w%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAG5%3DJHf%3D74C8RkK%2BSR5stCqaSb2220P3-_
> LwXOtKw_E0Bq%3D7cg%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



 --
 Jani Tiainen

 - Well planned is half done, and a half done has been sufficient
 before...

 --
 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 to this group, send email to django-users@googlegroups.com.
 Visit this group at