首页 \ 问答 \ 寻找提供django模板的资源(Looking for a resource which provides django templates [closed])

寻找提供django模板的资源(Looking for a resource which provides django templates [closed])

我对django和python非常方便,但我在网页设计的“视觉”方面很糟糕。 即使经过相当多的谷歌搜索,我仍然无法找到任何类型的资源,其下载模板可以用css,图像等方式完成,这些资源可以用来轻松设置基本网站。

我正在寻找超出5行示例的示例,这些示例在大多数教程中都可以找到......我正在寻找顶级通用导航栏,各种内容块以通过子类化,页脚,等等

我和其他人一起在django项目上工作,但总是在“编码方面”。 我想做我自己的项目。 我已经设置了所有的观点,模型,“商业逻辑”,我只是无法在设计部分中脱颖而出。

任何帮助,将不胜感激。

编辑 :只是要更清楚一点。 我正在寻找设计(开放许可)...类似于WordPress的主题。 如果你有一个主题资源,我可以将它们装入一个django模板,但如果你知道某些已经提供它们作为模板的东西,我更喜欢它。


I'm pretty handy with django and python but I'm terrible at the "visual" aspect of the web-design. Even after quite a bit of google-ing I haven't been able to find any sort of resource that has download-able templates complete with css, images, etc. that could be used to set up a basic website easily.

I'm looking for examples beyond the 5-line examples that you find in most tutorials ... I'm looking for something with the general nav-bar across the top, various content-blocks to over-ride through subclassing, footers, etc.

I've worked with others on django projects but always on the "coding side". I want to do my own project. I've set up all of the views, models, "business logic", I just cant get off the ground with the design section.

Any help would be appreciated.

Edit: Just to be a little more clear. I'm looking for designs (open licensed) ... akin to Wordpress themes. If you have a resource of just themes I can probably mung them into a django template but if you know of something that already provides them as templates I'd prefer that.


原文:https://stackoverflow.com/questions/1983978
更新时间:2022-02-08 06:02

最满意答案

如果您使用的是DataApi.DataListener,则必须在连接GoogleApiClient后添加addListener。 类似于: Wearable.DataApi.addListener(mGoogleApiClient, this)

如果您正在使用WearableListenerService,请确保在接收/侦听方的AndroidManifest.xml中有类似的代码,如下所示:

<service android:name=".YourCustomWearableListenerService">
    <intent-filter>
        <action android:name="com.google.android.gms.wearable.DATA_CHANGED"/>
            <data android:scheme="wear" 
                  android:host="*" 
                  <!-- I believe pathPrefix is optional, removing it will make the service listener to all data change events -->
                  android:pathPrefix="/YourDataMapPathPrefix"/>
        </intent-filter>
</service>

另请注意,只有在数据实际更改时才会调用onDataChanged 。 让我们说旧数据是(“Person”,“Bob”)并且用相同的数据(“Person”,“Bob”)替换它,然后onDataChanged将不会被触发,因为数据实际上没有改变。 但是如果放入(“Person”,“Bob2”), onDataChanged将被触发。


If you are using DataApi.DataListener, then you have to addListener after GoogleApiClient connected. Something like: Wearable.DataApi.addListener(mGoogleApiClient, this) inside your GoogleApiClient.ConnectionCallbacks.

If you are using WearableListenerService make sure you have similar code in your AndroidManifest.xml on the receiving/listening side as shown below:

<service android:name=".YourCustomWearableListenerService">
    <intent-filter>
        <action android:name="com.google.android.gms.wearable.DATA_CHANGED"/>
            <data android:scheme="wear" 
                  android:host="*" 
                  <!-- I believe pathPrefix is optional, removing it will make the service listener to all data change events -->
                  android:pathPrefix="/YourDataMapPathPrefix"/>
        </intent-filter>
</service>

Also keep in mind that onDataChanged will get call only if the data is ACTUALLY changed. Let's said that the old data is ("Person", "Bob") and you replace it with same data ("Person", "Bob"), then onDataChanged will not get triggered since the data does not change in fact. But onDataChanged will get triggered if you put ("Person", "Bob2") instead.

相关问答

更多
  • 汤姆在这个链接中的答案适用于我 有两件事你可以检查: 穿戴应用程序的packageName应该与设备应用程序的packageName相同。 onDataChanged()只在数据真正改变时才被调用。 如果您将相同的数据放入DataApi中多次,则只会调用该方法一次,直到您写入不同的数据为止。 您可以向数据添加时间戳以确保每次写入操作都调用一次该方法。 但是,使用DataApi在电池使用方面可能比发送消息更昂贵。 所以如果你只是想在将数据放入DataApi后触发一个动作,只需在完成后发送一条消息。 The a ...
  • 如果您使用的是DataApi.DataListener,则必须在连接GoogleApiClient后添加addListener。 类似于: Wearable.DataApi.addListener(mGoogleApiClient, this) 。 如果您正在使用WearableListenerService,请确保在接收/侦听方的AndroidManifest.xml中有类似的代码,如下所示:
    在您的清单文件中提及您的应用程序名称 In your Manifest file mention your application name
  • 试试这样: private String best; // OnCreate中 Criteria criteria = new Criteria(); best = locationManager.getBestProvider(criteria, true); locationManager.requestLocationUpdates(best, 300000, 0, this); I found a problem. GPS in my phone isn't working. If I use ...
  • 我解决了这个问题。 我的页面中有一个局部视图,顶部有这些视图: